Home > Backend Development > XML/RSS Tutorial > Detailed introduction to commonly used escape characters in XML and HTML

Detailed introduction to commonly used escape characters in XML and HTML

黄舟
Release: 2017-03-20 16:50:41
Original
2012 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template