六九博客-分享技术那些事六九博客-分享技术那些事

本博客仅做技术交流,
操作者不可用于违法用途!

HTML/XML转义字符对照表

免责声明:
本站资源并不针对任何人,任何机构,任何网站。
本站资源仅用于个人学习研究,请勿用于非法用途。
若因使用本站资源引起各类民事,刑事纠纷,属使用者的个人行为,与本站资源作者无关。
从你开始使用本服务,默认接受使用条款。
<span class="jbTestPos" id="advtop"></span>    <div class="table-responsive">
<h3>特殊字符转义表 <small></small></h3>
<table class="table table-bordered table-hover"> 
    <thead>
        <tr>
           <th>字符</th>
        <th>十进制</th>
        <th>转义字符</th>
        </tr>
    </thead>
    <tbody>
    <tr>
        <td class="separateColor">&quot;</td>
        <td>&amp;#34;</td>
        <td>&amp;quot;</td>
    </tr>
    <tr>
        <td class="separateColor">&amp;</td>
        <td>&amp;#38;</td>
        <td>&amp;amp;</td>
    </tr>
    <tr>
        <td class="separateColor">&lt;</td>
        <td>&amp;#60;</td>
        <td>&amp;lt;</td>
    </tr>
    <tr>
        <td class="separateColor">&gt;</td>
        <td>&amp;#62;</td>
        <td>&amp;gt;</td>
    </tr>
    <tr>
        <td class="separateColor">不断开空格(non-breaking space)</td>
        <td>&amp;#160;</td>
        <td>&amp;nbsp;</td>
    </tr>
    </tbody>
</table>
<h3>最常用的转义字符列表<small></small></h3>
<table class="table table-bordered table-hover">
  <thead>
    <tr>
        <th>显示</th>
        <th>说明</th>
        <th>实体名称</th>
        <th>十进制编号</th>
   </tr>
  </thead>
  <tbody>
    <tr>
    <td></td>
    <td>半方大的空白</td>
    <td>&amp;ensp;</td>
    <td>&amp;#8194;</td>
    </tr>
    <tr>
    <tr>
    <td></td>
    <td>全方大的空白</td>
    <td>&amp;emsp;</td>
    <td>&amp;#8195;</td>
    </tr>
    <tr>
    <tr>
    <td></td>
    <td>不断行的空白格</td>
    <td>&amp;nbsp;</td>
    <td>&amp;#160;</td>
    </tr>
    <tr>
    <td>&lt;</td>
    <td>小于</td>
    <td>&amp;lt;</td>
    <td>&amp;#60;</td>
    </tr>
    <tr>
    <td>&gt;</td>
    <td>大于</td>
    <td>&amp;gt;</td>
    <td>&amp;#62;</td>
    </tr>
    <tr>
    <td>&amp;</td>
    <td>&amp;符号</td>
    <td>&amp;amp;</td>
    <td>&amp;#38;</td>
    </tr>
    <tr>
    <td>&quot;</td>
    <td>双引号</td>
    <td>&amp;quot;</td>
    <td>&amp;#34;</td>
    </tr>
    <tr>
    <td>&copy;</td>
    <td>版权</td>
    <td>&amp;copy;</td>
    <td>&amp;#169;</td></tr>
    <tr>
    <td>&reg;</td>
    <td>已注册商标</td>
    <td>&amp;reg;</td>
    <td>&amp;#174;</td></tr>
    
    
    <tr>
    <td>&trade;</td>
    <td>商标(美国)</td>
    <td>&amp;trade;</td>
    <td>&amp;#8482;</td>
    </tr>
    <tr>
    
    <tr>
    <td>&times;</td>
    <td>乘号</td>
    <td>&amp;times;</td>
    <td>&amp;#215;</td>
    </tr>
    
    <tr>
    <td>&divide;</td>
    <td>除号</td>
    <td>&amp;divide;</td>
    <td>&amp;#247;</td>
    </tr>
  
  </tbody>
</table>
<h3>ISO 8859-1 (Latin-1)字符集 <small></small></h3>
<table class="table table-bordered table-hover">
  <thead>
    <tr>
      <th>显示</th>
      <th>名称</th>
      <th>十进制</th>
      <th>显示</th>
      <th>名称</th>
      <th>十进制</th>
      <th>显示</th>
      <th>名称</th>
      <th>十进制</th>
      <th>显示</th>
      <th>名称</th>
      <th>十进制</th>
      <th>显示</th>
      <th>名称</th>
      <th>十进制</th>
    </tr>

  </thead>

<tr>
  <td> </td>
  <td>&amp;nbsp;</td>
  <td>&amp;#160;</td>
  <td>¡</td>
  <td>&amp;iexcl;</td>
  <td>&amp;#161;</td>
  <td>¢</td>
  <td>&amp;cent;</td>
  <td>&amp;#162;</td>
  <td>£</td>
  <td>&amp;pound;</td>
  <td>&amp;#163;</td>
  <td>¤</td>
  <td>&amp;curren;</td>
  <td>&amp;#164;</td>
</tr>
<tr>
  <td>¥</td>
  <td>&amp;yen;</td>
  <td>&amp;#165;</td>
  <td>¦</td>
  <td>&amp;brvbar;</td>
  <td>&amp;#166;</td>
  <td>§</td>
  <td>&amp;sect;</td>
  <td>&amp;#167;</td>
  <td>¨</td>
  <td>&amp;uml;</td>
  <td>&amp;#168;</td>
  <td>©</td>
  <td>&amp;copy;</td>
  <td>&amp;#169;</td>
</tr>
<tr>
  <td>ª</td>
  <td>&amp;ordf;</td>
  <td>&amp;#170;</td>
  <td>«</td>
  <td>&amp;laquo;</td>
  <td>&amp;#171;</td>
  <td>¬</td>
  <td>&amp;not;</td>
  <td>&amp;#172;</td>
  <td></td>
  <td>&amp;shy;</td>
  <td>&amp;#173;</td>
  <td>®</td>
  <td>&amp;reg;</td>
  <td>&amp;#174;</td>
</tr>
<tr>
  <td>¯</td>
  <td>&amp;macr;</td>
  <td>&amp;#175;</td>
  <td>°</td>
  <td>&amp;deg;</td>
  <td>&amp;#176;</td>
  <td>±</td>
  <td>&amp;plusmn;</td>
  <td>&amp;#177;</td>
  <td>²</td>
  <td>&amp;sup2;</td>
  <td>&amp;#178;</td>
  <td>³</td>
  <td>&amp;sup3;</td>
  <td>&amp;#179;</td>
</tr>
<tr>
  <td>´</td>
  <td>&amp;acute;</td>
  <td>&amp;#180;</td>
  <td>µ</td>
  <td>&amp;micro;</td>
  <td>&amp;#181;</td>
  <td>¶</td>
  <td>&amp;para;</td>
  <td>&amp;#182;</td>
  <td>·</td>
  <td>&amp;middot;</td>
  <td>&amp;#183;</td>
  <td>¸</td>
  <td>&amp;cedil;</td>
  <td>&amp;#184;</td>
</tr>
<tr>
  <td>¹</td>
  <td>&amp;sup1;</td>
  <td>&amp;#185;</td>
  <td>º</td>
  <td>&amp;ordm;</td>
  <td>&amp;#186;</td>
  <td>»</td>
  <td>&amp;raquo;</td>
  <td>&amp;#187;</td>
  <td>¼</td>
  <td>&amp;frac14;</td>
  <td>&amp;#188;</td>
  <td>½</td>
  <td>&amp;frac12;</td>
  <td>&amp;#189;</td>
</tr>
<tr>
  <td>¾</td>
  <td>&amp;frac34;</td>
  <td>&amp;#190;</td>
  <td>¿</td>
  <td>&amp;iquest;</td>
  <td>&amp;#191;</td>
  <td>À</td>
  <td>&amp;Agrave;</td>
  <td>&amp;#192;</td>
  <td>Á</td>
  <td>&amp;Aacute;</td>
  <td>&amp;#193;</td>
  <td>Â</td>
  <td>&amp;Acirc;</td>
  <td>&amp;#194;</td>
</tr>
<tr>
  <td>Ã</td>
  <td>&amp;Atilde;</td>
  <td>&amp;#195;</td>
  <td>Ä</td>
  <td>&amp;Auml;</td>
  <td>&amp;#196;</td>
  <td>Å</td>
  <td>&amp;Aring;</td>
  <td>&amp;#197;</td>
  <td>Æ</td>
  <td>&amp;AElig;</td>
  <td>&amp;#198;</td>
  <td>Ç</td>
  <td>&amp;Ccedil;</td>
  <td>&amp;#199;</td>
</tr>
<tr>
  <td>È</td>
  <td>&amp;Egrave;</td>
  <td>&amp;#200;</td>
  <td>É</td>
  <td>&amp;Eacute;</td>
  <td>&amp;#201;</td>
  <td>Ê</td>
  <td>&amp;Ecirc;</td>
  <td>&amp;#202;</td>
  <td>Ë</td>
  <td>&amp;Euml;</td>
  <td>&amp;#203;</td>
  <td>Ì</td>
  <td>&amp;Igrave;</td>
  <td>&amp;#204;</td>
</tr>
<tr>
  <td>Í</td>
  <td>&amp;Iacute;</td>
  <td>&amp;#205;</td>
  <td>Î</td>
  <td>&amp;Icirc;</td>
  <td>&amp;#206;</td>
  <td>Ï</td>
  <td>&amp;Iuml;</td>
  <td>&amp;#207;</td>
  <td>Ð</td>
  <td>&amp;ETH;</td>
  <td>&amp;#208;</td>
  <td>Ñ</td>
  <td>&amp;Ntilde;</td>
  <td>&amp;#209;</td>
</tr>
<tr>
  <td>Ò</td>
  <td>&amp;Ograve;</td>
  <td>&amp;#210;</td>
  <td>Ó</td>
  <td>&amp;Oacute;</td>
  <td>&amp;#211;</td>
  <td>Ô</td>
  <td>&amp;Ocirc;</td>
  <td>&amp;#212;</td>
  <td>Õ</td>
  <td>&amp;Otilde;</td>
  <td>&amp;#213;</td>
  <td>Ö</td>
  <td>&amp;Ouml;</td>
  <td>&amp;#214;</td>
</tr>
<tr>
  <td>×</td>
  <td>&amp;times;</td>
  <td>&amp;#215;</td>
  <td>Ø</td>
  <td>&amp;Oslash;</td>
  <td>&amp;#216;</td>
  <td>Ù</td>
  <td>&amp;Ugrave;</td>
  <td>&amp;#217;</td>
  <td>Ú</td>
  <td>&amp;Uacute;</td>
  <td>&amp;#218;</td>
  <td>Û</td>
  <td>&amp;Ucirc;</td>
  <td>&amp;#219;</td>
</tr>
<tr>
  <td>Ü</td>
  <td>&amp;Uuml;</td>
  <td>&amp;#220;</td>
  <td>Ý</td>
  <td>&amp;Yacute;</td>
  <td>&amp;#221;</td>
  <td>Þ</td>
  <td>&amp;THORN;</td>
  <td>&amp;#222;</td>
  <td>ß</td>
  <td>&amp;szlig;</td>
  <td>&amp;#223;</td>
  <td>à</td>
  <td>&amp;agrave;</td>
  <td>&amp;#224;</td>
</tr>
<tr>
  <td>á</td>
  <td>&amp;aacute;</td>
  <td>&amp;#225;</td>
  <td>â</td>
  <td>&amp;acirc;</td>
  <td>&amp;#226;</td>
  <td>ã</td>
  <td>&amp;atilde;</td>
  <td>&amp;#227;</td>
  <td>ä</td>
  <td>&amp;auml;</td>
  <td>&amp;#228;</td>
  <td>å</td>
  <td>&amp;aring;</td>
  <td>&amp;#229;</td>
</tr>
<tr>
  <td>æ</td>
  <td>&amp;aelig;</td>
  <td>&amp;#230;</td>
  <td>ç</td>
  <td>&amp;ccedil;</td>
  <td>&amp;#231;</td>
  <td>è</td>
  <td>&amp;egrave;</td>
  <td>&amp;#232;</td>
  <td>é</td>
  <td>&amp;eacute;</td>
  <td>&amp;#233;</td>
  <td>ê</td>
  <td>&amp;ecirc;</td>
  <td>&amp;#234;</td>
</tr>
<tr>
  <td>ë</td>
  <td>&amp;euml;</td>
  <td>&amp;#235;</td>
  <td>ì</td>
  <td>&amp;igrave;</td>
  <td>&amp;#236;</td>
  <td>í</td>
  <td>&amp;iacute;</td>
  <td>&amp;#237;</td>
  <td>î</td>
  <td>&amp;icirc;</td>
  <td>&amp;#238;</td>
  <td>ï</td>
  <td>&amp;iuml;</td>
  <td>&amp;#239;</td>
</tr>
<tr>
  <td>ð</td>
  <td>&amp;eth;</td>
  <td>&amp;#240;</td>
  <td>ñ</td>
  <td>&amp;ntilde;</td>
  <td>&amp;#241;</td>
  <td>ò</td>
  <td>&amp;ograve;</td>
  <td>&amp;#242;</td>
  <td>ó</td>
  <td>&amp;oacute;</td>
  <td>&amp;#243;</td>
  <td>ô</td>
  <td>&amp;ocirc;</td>
  <td>&amp;#244;</td>
</tr>
<tr>
  <td>õ</td>
  <td>&amp;otilde;</td>
  <td>&amp;#245;</td>
  <td>ö</td>
  <td>&amp;ouml;</td>
  <td>&amp;#246;</td>
  <td>÷</td>
  <td>&amp;divide;</td>
  <td>&amp;#247;</td>
  <td>ø</td>
  <td>&amp;oslash;</td>
  <td>&amp;#248;</td>
  <td>ù</td>
  <td>&amp;ugrave;</td>
  <td>&amp;#249;</td>
</tr>
<tr>
  <td>ú</td>
  <td>&amp;uacute;</td>
  <td>&amp;#250;</td>
  <td>û</td>
  <td>&amp;ucirc;</td>
  <td>&amp;#251;</td>
  <td>ü</td>
  <td>&amp;uuml;</td>
  <td>&amp;#252;</td>
  <td>ý</td>
  <td>&amp;yacute;</td>
  <td>&amp;#253;</td>
  <td>þ</td>
  <td>&amp;thorn;</td>
  <td>&amp;#254;</td>
</tr>
<tr>
  <td>ÿ</td>
  <td>&amp;yuml;</td>
  <td>&amp;#255;</td>
</tr>

<h3>符号、数学符号和希腊字母 <small>&nbsp;symbols, mathematical symbols, and Greek letters</small></h3>
<table class="table table-bordered table-hover">
  <thead>
    <tr>
    <th>显示</th>
    <th>名称</th>
    <th>编号</th>
    <th>显示</th>
    <th>名称</th>
    <th>编号</th>
    <th>显示</th>
    <th>名称</th>
    <th>编号</th>
    <th>显示</th>
    <th>名称</th>
    <th>编号</th>
    <th>显示</th>
    <th>名称</th>
    <th>编号</th>
    </tr>

  </thead>
  <tbody>
<tr>
  <td>ƒ</td>
  <td>&amp;fnof;</td>
  <td>&amp;#402;</td>
  <td>Α</td>
  <td>&amp;Alpha;</td>
  <td>&amp;#913;</td>
  <td>Β</td>
  <td>&amp;Beta;</td>
  <td>&amp;#914;</td>
  <td>Γ</td>
  <td>&amp;Gamma;</td>
  <td>&amp;#915;</td>
  <td>Δ</td>
  <td>&amp;Delta;</td>
  <td>&amp;#916;</td>
</tr>
<tr>
  <td>Ε</td>
  <td>&amp;Epsilon;</td>
  <td>&amp;#917;</td>
  <td>Ζ</td>
  <td>&amp;Zeta;</td>
  <td>&amp;#918;</td>
  <td>Η</td>
  <td>&amp;Eta;</td>
  <td>&amp;#919;</td>
  <td>Θ</td>
  <td>&amp;Theta;</td>
  <td>&amp;#920;</td>
  <td>Ι</td>
  <td>&amp;Iota;</td>
  <td>&amp;#921;</td>
</tr>
<tr>
  <td>Κ</td>
  <td>&amp;Kappa;</td>
  <td>&amp;#922;</td>
  <td>Λ</td>
  <td>&amp;Lambda;</td>
  <td>&amp;#923;</td>
  <td>Μ</td>
  <td>&amp;Mu;</td>
  <td>&amp;#924;</td>
  <td>Ν</td>
  <td>&amp;Nu;</td>
  <td>&amp;#925;</td>
  <td>Ξ</td>
  <td>&amp;Xi;</td>
  <td>&amp;#926;</td>
</tr>
<tr>
  <td>Ο</td>
  <td>&amp;Omicron;</td>
  <td>&amp;#927;</td>
  <td>Π</td>
  <td>&amp;Pi;</td>
  <td>&amp;#928;</td>
  <td>Ρ</td>
  <td>&amp;Rho;</td>
  <td>&amp;#929;</td>
  <td>Σ</td>
  <td>&amp;Sigma;</td>
  <td>&amp;#931;</td>
  <td>Τ</td>
  <td>&amp;Tau;</td>
  <td>&amp;#932;</td>
</tr>
<tr>
  <td>Υ</td>
  <td>&amp;Upsilon;</td>
  <td>&amp;#933;</td>
  <td>Φ</td>
  <td>&amp;Phi;</td>
  <td>&amp;#934;</td>
  <td>Χ</td>
  <td>&amp;Chi;</td>
  <td>&amp;#935;</td>
  <td>Ψ</td>
  <td>&amp;Psi;</td>
  <td>&amp;#936;</td>
  <td>Ω</td>
  <td>&amp;Omega;</td>
  <td>&amp;#937;</td>
</tr>
<tr>
  <td>α</td>
  <td>&amp;alpha;</td>
  <td>&amp;#945;</td>
  <td>β</td>
  <td>&amp;beta;</td>
  <td>&amp;#946;</td>
  <td>γ</td>
  <td>&amp;gamma;</td>
  <td>&amp;#947;</td>
  <td>δ</td>
  <td>&amp;delta;</td>
  <td>&amp;#948;</td>
  <td>ε</td>
  <td>&amp;epsilon;</td>
  <td>&amp;#949;</td>
</tr>
<tr>
  <td>ζ</td>
  <td>&amp;zeta;</td>
  <td>&amp;#950;</td>
  <td>η</td>
  <td>&amp;eta;</td>
  <td>&amp;#951;</td>
  <td>θ</td>
  <td>&amp;theta;</td>
  <td>&amp;#952;</td>
  <td>ι</td>
  <td>&amp;iota;</td>
  <td>&amp;#953;</td>
  <td>κ</td>
  <td>&amp;kappa;</td>
  <td>&amp;#954;</td>
</tr>
<tr>
  <td>λ</td>
  <td>&amp;lambda;</td>
  <td>&amp;#955;</td>
  <td>μ</td>
  <td>&amp;mu;</td>
  <td>&amp;#956;</td>
  <td>ν</td>
  <td>&amp;nu;</td>
  <td>&amp;#957;</td>
  <td>ξ</td>
  <td>&amp;xi;</td>
  <td>&amp;#958;</td>
  <td>ο</td>
  <td>&amp;omicron;</td>
  <td>&amp;#959;</td>
</tr>
<tr>
  <td>π</td>
  <td>&amp;pi;</td>
  <td>&amp;#960;</td>
  <td>ρ</td>
  <td>&amp;rho;</td>
  <td>&amp;#961;</td>
  <td>ς</td>
  <td>&amp;sigmaf;</td>
  <td>&amp;#962;</td>
  <td>σ</td>
  <td>&amp;sigma;</td>
  <td>&amp;#963;</td>
  <td>τ</td>
  <td>&amp;tau;</td>
  <td>&amp;#964;</td>
</tr>
<tr>
  <td>υ</td>
  <td>&amp;upsilon;</td>
  <td>&amp;#965;</td>
  <td>φ</td>
  <td>&amp;phi;</td>
  <td>&amp;#966;</td>
  <td>χ</td>
  <td>&amp;chi;</td>
  <td>&amp;#967;</td>
  <td>ψ</td>
  <td>&amp;psi;</td>
  <td>&amp;#968;</td>
  <td>ω</td>
  <td>&amp;omega;</td>
  <td>&amp;#969;</td>
</tr>
<tr>
  <td>?</td>
  <td>&amp;thetasym;</td>
  <td>&amp;#977;</td>
  <td>?</td>
  <td>&amp;upsih;</td>
  <td>&amp;#978;</td>
  <td>?</td>
  <td>&amp;piv;</td>
  <td>&amp;#982;</td>
  <td>•</td>
  <td>&amp;bull;</td>
  <td>&amp;#8226;</td>
  <td>…</td>
  <td>&amp;hellip;</td>
  <td>&amp;#8230;</td>
</tr>
<tr>
  <td>′</td>
  <td>&amp;prime;</td>
  <td>&amp;#8242;</td>
  <td>″</td>
  <td>&amp;Prime;</td>
  <td>&amp;#8243;</td>
  <td>‾</td>
  <td>&amp;oline;</td>
  <td>&amp;#8254;</td>
  <td>⁄</td>
  <td>&amp;frasl;</td>
  <td>&amp;#8260;</td>
  <td>℘</td>
  <td>&amp;weierp;</td>
  <td>&amp;#8472;</td>
</tr>
<tr>
  <td>ℑ</td>
  <td>&amp;image;</td>
  <td>&amp;#8465;</td>
  <td>ℜ</td>
  <td>&amp;real;</td>
  <td>&amp;#8476;</td>
  <td>™</td>
  <td>&amp;trade;</td>
  <td>&amp;#8482;</td>
  <td>ℵ</td>
  <td>&amp;alefsym;</td>
  <td>&amp;#8501;</td>
  <td>←</td>
  <td>&amp;larr;</td>
  <td>&amp;#8592;</td>
</tr>
<tr>
  <td>↑</td>
  <td>&amp;uarr;</td>
  <td>&amp;#8593;</td>
  <td>→</td>
  <td>&amp;rarr;</td>
  <td>&amp;#8594;</td>
  <td>↓</td>
  <td>&amp;darr;</td>
  <td>&amp;#8595;</td>
  <td>↔</td>
  <td>&amp;harr;</td>
  <td>&amp;#8596;</td>
  <td>↵</td>
  <td>&amp;crarr;</td>
  <td>&amp;#8629;</td>
</tr>
<tr>
  <td>⇐</td>
  <td>&amp;lArr;</td>
  <td>&amp;#8656;</td>
  <td>⇑</td>
  <td>&amp;uArr;</td>
  <td>&amp;#8657;</td>
  <td>⇒</td>
  <td>&amp;rArr;</td>
  <td>&amp;#8658;</td>
  <td>⇓</td>
  <td>&amp;dArr;</td>
  <td>&amp;#8659;</td>
  <td>⇔</td>
  <td>&amp;hArr;</td>
  <td>&amp;#8660;</td>
</tr>
<tr>
  <td>∀</td>
  <td>&amp;forall;</td>
  <td>&amp;#8704;</td>
  <td>∂</td>
  <td>&amp;part;</td>
  <td>&amp;#8706;</td>
  <td>∃</td>
  <td>&amp;exist;</td>
  <td>&amp;#8707;</td>
  <td>∅</td>
  <td>&amp;empty;</td>
  <td>&amp;#8709;</td>
  <td>∇</td>
  <td>&amp;nabla;</td>
  <td>&amp;#8711;</td>
</tr>
<tr>
  <td>∈</td>
  <td>&amp;isin;</td>
  <td>&amp;#8712;</td>
  <td>∉</td>
  <td>&amp;notin;</td>
  <td>&amp;#8713;</td>
  <td>∋</td>
  <td>&amp;ni;</td>
  <td>&amp;#8715;</td>
  <td>∏</td>
  <td>&amp;prod;</td>
  <td>&amp;#8719;</td>
  <td>∑</td>
  <td>&amp;sum;</td>
  <td>&amp;#8721;</td>
</tr>
<tr>
  <td>−</td>
  <td>&amp;minus;</td>
  <td>&amp;#8722;</td>
  <td>∗</td>
  <td>&amp;lowast;</td>
  <td>&amp;#8727;</td>
  <td>√</td>
  <td>&amp;radic;</td>
  <td>&amp;#8730;</td>
  <td>∝</td>
  <td>&amp;prop;</td>
  <td>&amp;#8733;</td>
  <td>∞</td>
  <td>&amp;infin;</td>
  <td>&amp;#8734;</td>
</tr>
<tr>
  <td>∠</td>
  <td>&amp;ang;</td>
  <td>&amp;#8736;</td>
  <td>∧</td>
  <td>&amp;and;</td>
  <td>&amp;#8743;</td>
  <td>∨</td>
  <td>&amp;or;</td>
  <td>&amp;#8744;</td>
  <td>∩</td>
  <td>&amp;cap;</td>
  <td>&amp;#8745;</td>
  <td>∪</td>
  <td>&amp;cup;</td>
  <td>&amp;#8746;</td>
</tr>
<tr>
  <td>∫</td>
  <td>&amp;int;</td>
  <td>&amp;#8747;</td>
  <td>∴</td>
  <td>&amp;there4;</td>
  <td>&amp;#8756;</td>
  <td>∼</td>
  <td>&amp;sim;</td>
  <td>&amp;#8764;</td>
  <td>∝</td>
  <td>&amp;cong;</td>
  <td>&amp;#8773;</td>
  <td>≈</td>
  <td>&amp;asymp;</td>
  <td>&amp;#8776;</td>
</tr>
<tr>
  <td>≠</td>
  <td>&amp;ne;</td>
  <td>&amp;#8800;</td>
  <td>≡</td>
  <td>&amp;equiv;</td>
  <td>&amp;#8801;</td>
  <td>≤</td>
  <td>&amp;le;</td>
  <td>&amp;#8804;</td>
  <td>≥</td>
  <td>&amp;ge;</td>
  <td>&amp;#8805;</td>
  <td>⊂</td>
  <td>&amp;sub;</td>
  <td>&amp;#8834;</td>
</tr>
<tr>
  <td>⊃</td>
  <td>&amp;sup;</td>
  <td>&amp;#8835;</td>
  <td>⊄</td>
  <td>&amp;nsub;</td>
  <td>&amp;#8836;</td>
  <td>⊆</td>
  <td>&amp;sube;</td>
  <td>&amp;#8838;</td>
  <td>⊇</td>
  <td>&amp;supe;</td>
  <td>&amp;#8839;</td>
  <td>⊕</td>
  <td>&amp;oplus;</td>
  <td>&amp;#8853;</td>
</tr>
<tr>
  <td>⊗</td>
  <td>&amp;otimes;</td>
  <td>&amp;#8855;</td>
  <td>⊥</td>
  <td>&amp;perp;</td>
  <td>&amp;#8869;</td>
  <td>⋅</td>
  <td>&amp;sdot;</td>
  <td>&amp;#8901;</td>
  <td>?</td>
  <td>&amp;lceil;</td>
  <td>&amp;#8968;</td>
  <td>?</td>
  <td>&amp;rceil;</td>
  <td>&amp;#8969;</td>
</tr>
<tr>
  <td>?</td>
  <td>&amp;lfloor;</td>
  <td>&amp;#8970;</td>
  <td>?</td>
  <td>&amp;rfloor;</td>
  <td>&amp;#8971;</td>
  <td>?</td>
  <td>&amp;lang;</td>
  <td>&amp;#9001;</td>
  <td>?</td>
  <td>&amp;rang;</td>
  <td>&amp;#9002;</td>
  <td>◊</td>
  <td>&amp;loz;</td>
  <td>&amp;#9674;</td>
</tr>
<tr>
  <td>♠</td>
  <td>&amp;spades;</td>
  <td>&amp;#9824;</td>
  <td>♣</td>
  <td>&amp;clubs;</td>
  <td>&amp;#9827;</td>
  <td>♥</td>
  <td>&amp;hearts;</td>
  <td>&amp;#9829;</td>
  <td>♦</td>
  <td>&amp;diams;</td>
  <td>&amp;#9830;</td>
</tr>

</table>
<h3>重要的国际标记 <small> markup-significant and internationalization characters</small></h3>
<table class="table table-bordered table-hover">
  <thead>
    <tr>
      <th>显示</th>
      <th>名称</th>
      <th>编号</th>
      <th>显示</th>
      <th>名称</th>
      <th>编号</th>
      <th>显示</th>
      <th>名称</th>
      <th>编号</th>
      <th>显示</th>
      <th>名称</th>
      <th>编号</th>
      <th>显示</th>
      <th>名称</th>
      <th>编号</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>&quot;</td>
      <td>&amp;quot;</td>
      <td>&amp;#34;</td>
      <td>&amp;</td>
      <td>&amp;amp;</td>
      <td>&amp;#38;</td>
      <td>&lt;</td>
      <td>&amp;lt;</td>
      <td>&amp;#60;</td>
      <td>&gt;</td>
      <td>&amp;gt;</td>
      <td>&amp;#62;</td>
      <td>Œ</td>
      <td>&amp;OElig;</td>
      <td>&amp;#338;</td>
    </tr>
    <tr>
      <td>œ</td>
      <td>&amp;oelig;</td>
      <td>&amp;#339;</td>
      <td>Š</td>
      <td>&amp;Scaron;</td>
      <td>&amp;#352;</td>
      <td>š</td>
      <td>&amp;scaron;</td>
      <td>&amp;#353;</td>
      <td>Ÿ</td>
      <td>&amp;Yuml;</td>
      <td>&amp;#376;</td>
      <td>ˆ</td>
      <td>&amp;circ;</td>
      <td>&amp;#710;</td>
    </tr>
    <tr>
      <td>˜</td>
      <td>&amp;tilde;</td>
      <td>&amp;#732;</td>
      <td> </td>
      <td>&amp;ensp;</td>
      <td>&amp;#8194;</td>
      <td> </td>
      <td>&amp;emsp;</td>
      <td>&amp;#8195;</td>
      <td> </td>
      <td>&amp;thinsp;</td>
      <td>&amp;#8201;</td>
      <td>‌</td>
      <td>&amp;zwnj;</td>
      <td>&amp;#8204;</td>
    </tr>
    <tr>
      <td>&zwj;‍</td>
      <td>&amp;zwj;</td>
      <td>&amp;#8205;</td>
      <td>&lrm;‎</td>
      <td>&amp;lrm;</td>
      <td>&amp;#8206;</td>
      <td>‏&rlm;</td>
      <td>&amp;rlm;</td>
      <td>&amp;#8207;</td>
      <td>–</td>
      <td>&amp;ndash;</td>
      <td>&amp;#8211;</td>
      <td>—</td>
      <td>&amp;mdash;</td>
      <td>&amp;#8212;</td>
    </tr>
    <tr>
      <td>&lsquo;</td>
      <td>&amp;lsquo;</td>
      <td>&amp;#8216;</td>
      <td>&rsquo;</td>
      <td>&amp;rsquo;</td>
      <td>&amp;#8217;</td>
      <td>‚</td>
      <td>&amp;sbquo;</td>
      <td>&amp;#8218;</td>
      <td>&ldquo;</td>
      <td>&amp;ldquo;</td>
      <td>&amp;#8220;</td>
      <td>&rdquo;</td>
      <td>&amp;rdquo;</td>
      <td>&amp;#8221;</td>
    </tr>
    <tr>
      <td>&bdquo;</td>
      <td>&amp;bdquo;</td>
      <td>&amp;#8222;</td>
      <td>†</td>
      <td>&amp;dagger;</td>
      <td>&amp;#8224;</td>
      <td>‡</td>
      <td>&amp;Dagger;</td>
      <td>&amp;#8225;</td>
      <td>‰</td>
      <td>&amp;permil;</td>
      <td>&amp;#8240;</td>
      <td>‹</td>
      <td>&amp;lsaquo;</td>
      <td>&amp;#8249;</td>
    </tr>
    <tr>
      <td>›</td>
      <td>&amp;rsaquo;</td>
      <td>&amp;#8250;</td>
      <td>€</td>
      <td>&amp;euro;</td>
      <td>&amp;#8364;</td>
    </tr>
  </tbody>
</table>
</div> 

 <div class="well">
    <h3>为什么要用转义字符串?</h3>
    <p>HTML中&lt;,&gt;,&amp;等有特殊含义(&lt;,&gt;,用于链接签,&amp;用于转义),不能直接使用。这些符号是不显示在我们最终看到的网页里的,那如果我们希望在网页中显示这些符号,该怎么办呢?</p>
    <p>这就要说到HTML转义字符串(Escape Sequence)了。</p>
    <p>转义字符串(Escape Sequence)也称字符实体(Character Entity)。在HTML中,定义转义字符串的原因有两个:第一个原因是像&ldquo;&lt;&rdquo;和&ldquo;&gt;&rdquo;这类符号已经用来表示HTML标签,因此就不能直接当作文本中的符号来使用。为了在HTML文档中使用这些符号,就需要定义它的转义字符串。当解释程序遇到这类字符串时就把它解释为真实的字符。在输入转义字符串时,要严格遵守字母大小写的规则。第二个原因是,有些字符在ASCII字符集中没有定义,因此需要使用转义字符串来表示。</p>
    <h3>转义字符串的组成</h3>
    <p>转义字符串(Escape Sequence),即字符实体(Character Entity)分成三部分:第一部分是一个&amp;符号,英文叫ampersand;第二部分是实体(Entity)名字或者是#加上实体(Entity)编号;第三部分是一个分号。</p>
    <p>比如,要显示小于号(&lt;),就可以写 &amp;lt; 或者 &amp;#60; 。</p>
    <p>用实体(Entity)名字的好处是比较好理解,一看lt,大概就猜出是less than的意思,但是其劣势在于并不是所有的浏览器都支持最新的Entity名字。而实体(Entity)编号,各种浏览器都能处理。</p>
    <p>提示:实体名称(Entity)是区分大小写的。</p>
    <p>备注:同一个符号,可以用&ldquo;实体名称&rdquo;和&ldquo;实体编号&rdquo;两种方式引用,&ldquo;实体名称&rdquo;的优势在于便于记忆,但不能保证所有的浏览器都能顺利识别它,而&ldquo;实体编号&rdquo;则没有这种担忧,但它实在不方便记忆。</p>
    <h3>如何显示空格?</h3>
    <p>通常情况下,HTML会自动截去多余的空格。不管你加多少空格,都被看做一个空格。比如你在两个字之间加了10个空格,HTML会截去9个空格,只保留一个。为了在网页中增加空格,你可以使用&amp;nbsp;表示空格。</p>
    
    </div>   
未经允许不得转载:六九博客-分享技术那些事 » HTML/XML转义字符对照表
添加新评论