Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php xml string

htmlspecialchars($string, ENT_XML1 | ENT_QUOTES, 'UTF-8');// will convert ' to &apos; in addition to &, <, > and "( not | )
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #xml #string
ADD COMMENT
Topic
Name
8+2 =