DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
he escape() function is used to convert the <, &, and > characters to the corresponding entity references:
1 >>> from xml.sax.saxutils import escape 2 >>> 3 >>> escape("< & >") 4 '< & >'
Source by wiki.python.org #
PREVIOUS
NEXT
Tagged:
#function
#convert
#characters
#entity
ADD COMMENT
Topic
COMMENT
Name
2+4 =
Submit