Show text without converting to html

From: Date: Thu, 09 Sep 2010 13:52:27 +0000
Subject: Show text without converting to html
Groups: php.general 
Request: Send a blank email to php-general+get-307902@lists.php.net to get a copy of this message
Hello All, I have some code which converts to some html to ascii characters. This basically obfuscates the html code, but shows it correctly on an page. I am trying to show the results of the obfuscation ( works correctly because it displays the html value ), but I want to then show the obfuscated html code so they can copy it. An example is I want to show them this below: <a href="&#x6d;&#x61;&#x69;&#108;&#x74;&#111;&#x3a;&#x79;&#x6f;&#117;&#114;&#x4 0;&#101;&#x6d;&#00097;&#x69;&#x6c;&#x2e;&#97;&#x64;&#x64;&#x72;&#000101;&#00 0115;&#115;?subject=&cc=&bcc=&body=" style="" class="" id="">&#x79;&#000111;&#x75;&#000114;&#x40;&#x65;&#x6d;&#97;&#105;&#x6c;&#000 46;&#x61;&#x64;&#x64;&#000114;&#x65;&#000115;&#x73;</a> Which was created by the code, but I apparently can't seem to echo it and get it to display like above.. It converts it to html no matter what I do. Thanks! Jack

« previous php.general (#307902) next »