• XML和HTML常用转义字符


    XML和HTML中都有一些特殊的字符,这些字符在XML和HTML中是不能直接使用的,如果必须使用这些字符,应该使用其对应的转义字符。

    XML常用转义字符:

    字符

    转义字符

    描述

    &

    &

    <

    &lt;

    小于号

    >

    &gt;

    大于号

    "

    &quot;

    双引号

    '

    &apos;

    单引号


    HTML常用转义字符:

    字符

    转义字符

    描述

    &

    &amp;

    <

    &lt;

    小于号

    >

    &gt;

    大于号

    "

    &quot;

    双引号

     

    &nbsp;

    空格

    ©

    &copy;

    版权符

    ®

    &reg;

    注册符


    以上转载至:http://www.cnblogs.com/anjou/archive/2007/03/15/676476.html 

    特殊字符

     

    字符

    十进制

    转义字符

    "

    "

    &quot;

    &

    &

    &amp;

    <

    <

    &lt;

    >

    >

    &gt;

    不断开空格(non-breaking space)

    &nbsp;

    其他字符

     

    字符

    十进制

    转义字符

    字符

    十进制

    转义字符

    字符

    十进制

    转义字符

    ?

    ¡

    &iexcl;

    Á

    Á

    &Aacute;

    á

    á

    &aacute;

    ¢

    &cent;

    Â

    Â

    &circ;

    â

    â

    &acirc;

    £

    &pound;

    Ã

    Ã

    &Atilde;

    ã

    ã

    &atilde;

    ¤

    ¤

    &curren;

    Ä

    Ä

    &Auml

    ä

    ä

    &auml;

    ¥

    &yen;

    Å

    Å

    &ring;

    å

    å

    &aring;

    |

    ¦

    &brvbar;

    Æ

    Æ

    &AElig;

    æ

    æ

    &aelig;

    §

    §

    &sect;

    Ç

    Ç

    &Ccedil;

    ç

    ç

    &ccedil;

    ¨

    ¨

    &uml;

    È

    È

    &Egrave;

    è

    è

    &egrave;

    ©

    ©

    &copy;

    É

    É

    &Eacute;

    é

    é

    &eacute;

    a

    ª

    &ordf;

    Ê

    Ê

    &Ecirc;

    ê

    ê

    &ecirc;

    ?

    «

    &laquo;

    Ë

    Ë

    &Euml;

    ë

    ë

    &euml;

    ?

    ¬

    &not;

    Ì

    Ì

    &Igrave;

    ì

    ì

    &igrave;

    x7f

     

    &shy;

    Í

    Í

    &Iacute;

    í

    í

    &iacute;

    ®

    ®

    &reg;

    Î

    Î

    &Icirc;

    î

    î

    &icirc;

    ˉ

    ¯

    &macr;

    Ï

    Ï

    &Iuml;

    ï

    ï

    &iuml;

    °

    °

    &deg;

    Ð

    Ð

    &ETH;

    ð

    ð

    &ieth;

    ±

    ±

    &plusmn;

    Ñ

    Ñ

    &Ntilde;

    ñ

    ñ

    &ntilde;

    2

    ²

    &sup2;

    Ò

    Ò

    &Ograve;

    ò

    ò

    &ograve;

    3

    ³

    &sup3;

    Ó

    Ó

    &Oacute;

    ó

    ó

    &oacute;

    ´

    &acute;

    Ô

    Ô

    &Ocirc;

    ô

    ô

    &ocirc;

    μ

    µ

    &micro;

    Õ

    Õ

    &Otilde;

    õ

    õ

    &otilde;

    ?

    &para;

    Ö

    Ö

    &Ouml;

    ö

    ö

    &ouml;

    ·

    ·

    &middot;

    &times;

    ×

    &times;

    ÷

    ÷

    &divide;

    ?

    ¸

    &cedil;

    Ø

    Ø

    &Oslash;

    ø

    ø

    &oslash;

    1

    ¹

    &sup1;

    Ù

    Ù

    &Ugrave;

    ù

    ù

    &ugrave;

    o

    º

    &ordm;

    Ú

    Ú

    &Uacute;

    ú

    ú

    &uacute;

    ?

    »

    &raquo;

    Û

    Û

    &Ucirc;

    û

    û

    &ucirc;

    ?

    ¼

    &frac14;

    Ü

    Ü

    &Uuml;

    ü

    ü

    &uuml;

    ?

    ½

    &frac12;

    Ý

    Ý

    &Yacute;

    ý

    ý

    &yacute;

    ?

    ¾

    &frac34;

    Þ

    Þ

    &THORN;

    þ

    þ

    &thorn;

    ?

    ¿

    &iquest;

    ß

    ß

    &szlig;

    ÿ

    ÿ

    &yuml;

    À

    À

    &Agrave;

    à

    à

    &agrave;

         

  • 相关阅读:
    Yantai
    Star War
    douban's woshang
    cannot change font's type in coreldraw
    LuXun said
    WaiTan
    free ubuntu disk前天就收到了寄来的光盘
    Winter Swimming
    before buy laptop买本本前,先来看看
    ubuntu beginer
  • 原文地址:https://www.cnblogs.com/shangbolei/p/4913731.html
Copyright © 2020-2023  润新知