Home > Article > Backend Development > Detailed introduction to commonly used escape characters in XML and HTML
There are some special characters in
XML and HTML. These characters cannot be used directly in XML and HTML. If these characters must be used, their corresponding escape characters should be used.
XML commonly used escape characters:
##Characters |
##Escape characters |
describe |
##& | 和 |
|
< | < | 小于号 |
> |
> |
Greater than sign |
##" |
" |
##Double quotes
|
'
|
'
|
apostrophe |
Common HTML escape characters:
##Characters |
##Escape characters |
describe |
#& |
and |
|
< | < | 小于号 |
> |
> |
大于号 |
" |
" |
Double quotes |
|
|
Space |
#©
|
& | Copyright symbol |
##® |
##®
|
Registration symbol
|
The above is the detailed content of Detailed introduction to commonly used escape characters in XML and HTML. For more information, please follow other related articles on the PHP Chinese website!