特殊字元在Html裡是無法直接顯示的解決方法

|
特殊字元在Html裡是無法直接顯示的,所以必須用相對應的code來表示,這樣才能正確的顯示出來唷!
最常用的就是< > & " 等符號的替代了,乾脆自己做個記錄吧!





Character codes Entity
quotation mark = APL quote &quot; "
ampersand &amp; &
less-than sign &lt; <
greater-than sign &gt; >

blank
&nbsp;  
modifier letter circumflex accent &circ; ˆ
small tilde &tilde; ˜
en dash &ndash;
em dash &mdash;
left single quotation mark &lsquo;
right single quotation mark &rsquo;
single low-9 quotation mark &sbquo;
left double quotation mark &ldquo;
right double quotation mark &rdquo;
per mille sign &permil;
euro sign &euro;

0 個留言: