Home > Web Front-end > JS Tutorial > xml and web special characters_javascript skills

xml and web special characters_javascript skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 18:53:43
Original
1053 people have browsed it
Copy code The code is as follows:

def covert_xml_special_char(convert_str):
'''''replacement Special characters ''' in xml
convert_str = convert_str.replace('&', '&')
convert_str = convert_str.replace('"''"', '"')
convert_str = convert_str.replace("'", ''')
convert_str = convert_str.replace('<', '<')
convert_str = convert_str.replace('>', '>')
return convert_str
Related labels:
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
Latest Issues
objective-c - socket sends data in xml format
From 1970-01-01 08:00:00
0
0
0
How to parse and process HTML/XML in PHP?
From 1970-01-01 08:00:00
0
0
0
How to parse and process HTML/XML in PHP?
From 1970-01-01 08:00:00
0
0
0
How to parse and process HTML/XML using PHP?
From 1970-01-01 08:00:00
0
0
0
Update xml namespace with data from PHP form
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template