Home  >  Article  >  Backend Development  >  Detailed introduction to commonly used escape characters in XML and HTML

Detailed introduction to commonly used escape characters in XML and HTML

黄舟
黄舟Original
2017-03-20 16:50:411970browse

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:

##&##Note: The escape character should start with "&" and end with ";".

##Characters


##Escape characters


describe


#&

and

<

<

小于号

>

>

大于号

"

"

Double quotes

 

Space

&

copy;

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn