<?php $html = <<<'HTML' <div> Properly encoded: <3> and <+> </div> HTML; $document = new DOMDocument(); $document->loadHTML($html, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); var_dump($document->documentElement->textContent);
You have javascript disabled. You will not be able to edit any code.