Search
 
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
Name
2+4 =