<?php $string = " ' < > £ \" "; $doc = new DOMDocument(); $doc->formatOutput = true; $el = $doc->createElement('node'); $el->appendChild($doc->createTextNode(htmlentities($string, ENT_QUOTES,'UTF-8'))); $doc->appendChild($el); echo $doc->saveXML();
You have javascript disabled. You will not be able to edit any code.