`
elemark
  • 浏览: 238222 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

HTML中的 字符转义大全 - 转摘

    博客分类:
  • JAVA
阅读更多

HTML转义符号

HTML常用符号:

显示一个空格    
< 小于 &lt; &#60;
> 大于 &gt; &#62;
& &符号 &amp; &#38;
" 双引号 &quot; &#34;
其他常用的字符实体(Character Entities)
显示结果 说明 Entity Name Entity Number
? 版权 &copy; &#169;
? 注册商标 &reg; &#174;
× 乘号 &times; &#215;
÷ 除号 &divide; &#247;

ISO Latin-1字符集:
字符 十进制字符编号 实体名字 说明
--- &#09; --- 制表符Horizontal tab
--- &#10; --- 换行Line feed
--- &#13; --- 回车Carriage Return
&#32; --- Space
! &#33; --- 惊叹号Exclamation mark
" &#34; &quot; 双引号Quotation mark
# &#35; --- 数字标志Number sign
$ &#36; --- 美元标志Dollar sign
% &#37; --- 百分号Percent sign
& &#38; &amp; Ampersand
" &#39; --- 单引号Apostrophe
( &#40; --- 小括号左边部分Left parenthesis
) &#41; --- 小括号右边部分Right parenthesis
* &#42; --- 星号Asterisk
+ &#43; --- 加号Plus sign
, &#44; --- 逗号Comma
- &#45; --- 连字号Hyphen
. &#46; --- 句号Period (fullstop)
/ &#47; --- 斜杠Solidus (slash)
0 &#48; --- 数字0 Digit 0
1 &#49; --- 数字1 Digit 1
2 &#50; --- 数字2 Digit 2
3 &#51; --- 数字3 Digit 3
4 &#52; --- 数字4 Digit 4
5 &#53; --- 数字5 Digit 5
6 &#54; --- 数字6 Digit 6
7 &#55; --- 数字7 Digit 7
8 &#56; --- 数字8 Digit 8
9 &#57; --- 数字9 Digit 9
: &#58; --- 冒号Colon
; &#59; --- 分号Semicolon
< &#60; &lt; 小于号Less than
= &#61; --- 等于符号Equals sign
> &#62; &gt; 大于号Greater than
? &#63; --- 问号Question mark
@ &#64; --- Commercial at
A &#65; --- 大写A Capital A
B &#66; --- 大写B Capital B
C &#67; --- 大写C Capital C
D &#68; --- 大写D Capital D
E &#69; --- 大写E Capital E
F &#70; --- 大写F Capital F
G &#71; --- 大写G Capital G
H &#72; --- 大写H Capital H
I &#73; --- 大写J Capital I
J &#74; --- 大写K Capital J
K &#75; --- 大写L Capital K
L &#76; --- 大写K Capital L
M &#77; --- 大写M Capital M
N &#78; --- 大写N Capital N
O &#79; --- 大写O Capital O
P &#80; --- 大写P Capital P
Q &#81; --- 大写Q Capital Q
R &#82; --- 大写R Capital R
S &#83; --- 大写S Capital S
T &#84; --- 大写T Capital T
U &#85; --- 大写U Capital U
V &#86; --- 大写V Capital V
W &#87; --- 大写W Capital W
X &#88; --- 大写X Capital X
Y &#89; --- 大写Y Capital Y
Z &#90; --- 大写Z Capital Z
[ &#91; --- 中括号左边部分Left square bracket
\ &#92; --- 反斜杠Reverse solidus (backslash)
] &#93; --- 中括号右边部分Right square bracket
^ &#94; --- Caret
_ &#95; --- 下划线Horizontal bar (underscore)
` &#96; --- 尖重音符Acute accent
a &#97; --- 小写a Small a
b &#98; --- 小写b Small b
c &#99; --- 小写c Small c
d &#100; --- 小写d Small d
e &#101; --- 小写e Small e
f &#102; --- 小写f Small f
g &#103; --- 小写g Small g
h &#104; --- 小写h Small h
i &#105; --- 小写i Small i
j &#106; --- 小写j Small j
k &#107; --- 小写k Small k
l &#108; --- 小写l Small l
m &#109; --- 小写m Small m
n &#110; --- 小写n Small n
o &#111; --- 小写o Small o
p &#112; --- 小写p Small p
q &#113; --- 小写q Small q
r &#114; --- 小写r Small r
s &#115; --- 小写s Small s
t &#116; --- 小写t Small t
u &#117; --- 小写u Small u
v &#118; --- 小写v Small v
w &#119; --- 小写w Small w
x &#120; --- 小写x Small x
y &#121; --- 小写y Small y
z &#122; --- 小写z Small z
{ &#123; --- 大括号左边部分Left curly brace
| &#124; --- 竖线Vertical bar
} &#125; --- 大括号右边部分Right curly brace
~ &#126; --- Tilde
--- &#127; --- 未使用Unused
&#160; &nbsp; 空格Nonbreaking space
? &#161; &iexcl; Inverted exclamation
¢ &#162; &cent; 货币分标志Cent sign
£ &#163; &pound; 英镑标志Pound sterling
¤ &#164; &curren; 通用货币标志General currency sign
¥ &#165; &yen; 日元标志Yen sign
| &#166; &brvbar; or &brkbar; 断竖线Broken vertical bar
§ &#167; &sect; 分节号Section sign
¨ &#168; &uml; or &die; 变音符号Umlaut
? &#169; &copy; 版权标志Copyright
a &#170; &ordf; Feminine ordinal
? &#171; &laquo; Left angle quote, guillemet left
? &#172; &not Not sign
¬ &#173; &shy; Soft hyphen
? &#174; &reg; 注册商标标志Registered trademark
ˉ &#175; &macr; or &hibar; 长音符号Macron accent
° &#176; &deg; 度数标志Degree sign
± &#177; &plusmn; 加或减Plus or minus
2 &#178; &sup2; 上标2 Superscrīpt two
3 &#179; &sup3; 上标3 Superscrīpt three
′ &#180; &acute; 尖重音符Acute accent
μ &#181; &micro; Micro sign
? &#182; &para; Paragraph sign
• &#183; &middot; Middle dot
? &#184; &cedil; Cedilla
1 &#185; &sup1; 上标1 Superscrīpt one
o &#186; &ordm; Masculine ordinal
? &#187; &raquo; Right angle quote, guillemet right
? &#188; &frac14; 四分之一Fraction one-fourth
? &#189; &frac12; 二分之一Fraction one-half
? &#190; &frac34; 四分之三Fraction three-fourths
? &#191; &iquest; Inverted question mark
à &#192; &Agrave; Capital A, grave accent
á &#193; &Aacute; Capital A, acute accent
? &#194; &Acirc; Capital A, circumflex
? &#195; &Atilde; Capital A, tilde
? &#196; &Auml; Capital A, di?esis / umlaut
? &#197; &Aring; Capital A, ring
? &#198; &AElig; Capital AE ligature
? &#199; &Ccedil; Capital C, cedilla
è &#200; &Egrave; Capital E, grave accent
é &#201; &Eacute; Capital E, acute accent
ê &#202; &Ecirc; Capital E, circumflex
? &#203; &Euml; Capital E, di?esis / umlaut
ì &#204; &Igrave; Capital I, grave accent
í &#205; &Iacute; Capital I, acute accent
? &#206; &Icirc; Capital I, circumflex
? &#207; &Iuml; Capital I, di?esis / umlaut
D &#208; &ETH; Capital Eth, Icelandic
? &#209; &Ntilde; Capital N, tilde
ò &#210; &Ograve; Capital O, grave accent
ó &#211; &Oacute; Capital O, acute accent
? &#212; &Ocirc; Capital O, circumflex
? &#213; &Otilde; Capital O, tilde
? &#214; &Ouml; Capital O, di?esis / umlaut
× &#215; &times; 乘号Multiply sign
? &#216; &Oslash; Capital O, slash
ù &#217; &Ugrave; Capital U, grave accent
ú &#218; &Uacute; Capital U, acute accent
? &#219; &Ucirc; Capital U, circumflex
ü &#220; &Uuml; Capital U, di?esis / umlaut
Y &#221; &Yacute; Capital Y, acute accent
T &#222; &THORN; Capital Thorn, Icelandic
? &#223; &szlig; Small sharp s, German sz
à &#224; &agrave; Small a, grave accent
á &#225; &aacute; Small a, acute accent
a &#226; &acirc; Small a, circumflex
? &#227; &atilde; Small a, tilde
? &#228; &auml; Small a, di?esis / umlaut
? &#229; &aring; Small a, ring
? &#230; &aelig; Small ae ligature
? &#231; &ccedil; Small c, cedilla
è &#232; &egrave; Small e, grave accent
é &#233; &eacute; Small e, acute accent
ê &#234; &ecirc; Small e, circumflex
? &#235; &euml; Small e, di?esis / umlaut
ì &#236; &igrave; Small i, grave accent
í &#237; &iacute; Small i, acute accent
? &#238; &icirc; Small i, circumflex
? &#239; &iuml; Small i, di?esis / umlaut
e &#240; &eth; Small eth, Icelandic
? &#241; &ntilde; Small n, tilde
ò &#242; &ograve; Small o, grave accent
ó &#243; &oacute; Small o, acute accent
? &#244; &ocirc; Small o, circumflex
? &#245; &otilde; Small o, tilde
? &#246; &ouml; Small o, di?esis / umlaut
÷ &#247; &divide; 除号Division sign
? &#248; &oslash; Small o, slash
ù &#249; &ugrave; Small u, grave accent
ú &#250; &uacute; Small u, acute accent
? &#251; &ucirc; Small u, circumflex
ü &#252; &uuml; Small u, di?esis / umlaut
y &#253; &yacute; Small y, acute accent
t &#254; &thorn; Small thorn, Icelandic
? &#255; &yuml; Small y, umlaut

symbols, mathematical symbols, and Greek letters
? &fnof; Α &Alpha; Β &Beta; Γ &Gamma; Δ &Delta;
Ε &Epsilon; Ζ &Zeta; Η &Eta; Θ &Theta; Ι &Iota;
Κ &Kappa; Λ &Lambda; Μ &Mu; Ν &Nu; Ξ &Xi;
Ο &Omicron; Π &Pi; Ρ &Rho; Σ &Sigma; Τ &Tau;
Υ &Upsilon; Φ &Phi; Χ &Chi; Ψ &Psi; Ω &Omega;
α &alpha; β &beta; γ &gamma; δ &delta; ε &epsilon;
ζ &zeta; η &eta; θ &theta; ι &iota; κ &kappa;
λ &lambda; μ &mu; ν &nu; ξ &xi; ο &omicron;
π &pi; ρ &rho; ? &sigmaf; σ &sigma; τ &tau;
υ &upsilon; φ &phi; χ &chi; ψ &psi; ω &omega;
? &thetasym; ? &upsih; ? &piv; ? &bull; … &hellip;
′ &prime; ″ &Prime;  ̄ &oline; ? &frasl; ? &weierp;
? &image; ? &real; ? &trade; ? &alefsym; ← &larr;
↑ &uarr; → &rarr; ↓ &darr; ? &harr; ? &crarr;
? &lArr; ? &uArr; ? &rArr; ? &dArr; ? &hArr;
? &forall; ? &part; ? &exist; ? &empty; ? &nabla;
∈ &isin; ? &notin; ? &ni; ∏ &prod; ∑ &sum;
? &minus; ? &lowast; √ &radic; ∝ &prop; ∞ &infin;
∠ &ang; ∧ &and; ∨ &or; ∩ &cap; ∪ &cup;
∫ &int; ∴ &there4; ~ &sim; ? &cong; ≈ &asymp;
≠ &ne; ≡ &equiv; ≤ &le; ≥ &ge; ? &sub;
? &sup; ? &nsub; ? &sube; ? &supe; ⊕ &oplus;
? &otimes; ⊥ &perp; ? &sdot; ? &lceil; ? &rceil;
? &lfloor; ? &rfloor; ? &lang; ? &rang; ? &loz;
? &spades; ? &clubs; ? &hearts; ? &diams;
markup-significant and internationalization characters
“ &quot; & &amp; < &lt; > &gt; ? &OElig;
? &oelig; ? &Scaron; ? &scaron; ? &Yuml; ? &circ;
? &tilde; ? &ensp; ? &emsp; ? &thinsp; ? &zwnj;
? &zwj; ? &lrm; ? &rlm; – &ndash; — &mdash;
‘ &lsquo; ’ &rsquo; ? &sbquo; “ &ldquo; ” &rdquo;
? &bdquo; ? &dagger; ? &Dagger; ‰ &permil; ? &lsaquo;
? &rsaquo; ?/STRONG> &euro;  
分享到:
评论

相关推荐

    html转义字符表--大全

    在HTML中,转义字符通常由 "&" 开始,后跟字符的名称或十进制/十六进制数值,然后以分号 ";" 结束。对于那些在ASCII字符集中没有对应编码的字符,也需要通过转义字符来表示。例如,"&lt;" 表示小于号 ","&gt;" 表示...

    常用HTML转义字符,html转义符,JavaScript转义符,html转义字符表,HTML语言特殊字符对照表(ISO Latin-1字符集) - 来源:嘻嘻网 114_xixik_com_files

    在HTML中,每个拉丁-1字符都可以通过其对应的ASCII码或Unicode码以转义字符的形式出现。例如,ASCII码197(或Unicode码00C5)代表大写的安哥拉字母(Å),在HTML中可以写作"&Aring;"或者"\u00C5"。 在网页开发中,...

    Tinyxml不能读取的字符 要转义-可以查百度文库

    Tinyxml不能读取的字符 要转义-可以查百度文库

    章节2:编程基本概念之24:字符串-转义字符-字符串拼接-字符串复制-input获取键盘输入.rar

    python

    C#-转义字符-EscapeChar

    在C#编程语言中,转义字符(Escape Character)是一种特殊字符,用于指示字符串或字符字面量中的特定字符有特殊含义。转义字符以反斜杠(\)开头,它告诉编译器后面的字符应该被特殊处理。转义字符在多种场景下都...

    HTML特殊转义字符列表

    web开发时 html 页面 特殊字符转义大全 如 引号 冒号 空格等等

    Mybatis在Mapper.xml文件中的转义字符处理方式.pdf

    为了解决这个问题,Mybatis提供了一些处理转义字符的方式,以确保SQL语句能够正确地写入Mapper.xml文件中并被解析。 在Mapper.xml文件中处理转义字符的常见方法主要有以下几种: 1. 常用的XML转义字符写法 在XML中...

    HTML 转义字符串

    HTML(HyperText Markup Language)是一种用于创建网页的标准标记语言,其中转义字符串是HTML中的一个重要概念,用于在网页中插入特殊字符或者防止某些字符被浏览器误解析。在HTML中,某些字符如 "、"&gt;"、"&" 等具有...

    HTML_转义字符

    转义字符是HTML的一种特殊语法,用于在网页中插入无法直接输入或可能与HTML语法冲突的字符。本文将详细介绍HTML转义字符的基本概念及其常见用法。 #### 二、HTML转义字符的作用 HTML转义字符主要用于以下几种情况...

    测量程序编制 - python 12数据类型:String(字符串)-转义字符.pptx

    字符串中的转义字符是一个特殊概念,它允许我们在字符串中插入特殊字符或表示无法直接输入的字符。转义字符是通过在字符前加上反斜杠 `\` 来实现的。在Python中,转义字符主要用于以下几种情况: 1. **续行符**:当...

    HTML特殊字符转义对照字典表

    完整的HTML特殊字符转义对照表,一表在手,放心使用,从此告别百度

    正则表达式特殊字符的转义

    正则表达式特殊字符的转义,常用网页特殊字符转义,网络爬虫特殊字符处理

    ANSI转义码-小代码

    ANSI转义码-显示脚本

    HTML和XML中的转义字符

    #### 二、HTML中的转义字符 在HTML中,有几种常见的转义字符用于替代特定符号,防止这些符号被误解为HTML标记的一部分: 1. **`&amp;`**:代表“&”符号。在HTML中,“&”通常用于表示一个实体的开始,因此直接...

    HTML转义字符串

    首先,我们来看"特殊字符转义.htm"这个文件,它可能包含了HTML中一些特殊字符的转义表示。例如,"&"是HTML中的连接符,如果直接写入,浏览器会尝试解析其后的文本,可能导致错误。为了避免这种情况,我们可以使用"&...

    java csv 读写框架特殊字符转义.docx

    该框架还解决了 Excel 直接翻开、utf-8 乱码问题,并支持集合、数组、Map 的存取、对象中内嵌其他对象、特别字符转义等功能。 在实际使用中,特别字符转义是一个重要的功能。假设我们期望这些特别字符被正确的存取...

    HTML & XML 转义字符

    在HTML中,某些字符如", "&gt;", "&"拥有特殊的含义,不能直接在文档中使用。这是因为"用于标记元素的开始,"&gt;"表示元素的结束,"&"则是用于转义其他特殊字符的。如果在文本内容中直接使用这些字符,解析器可能会误解其...

Global site tag (gtag.js) - Google Analytics