Convert HTML for Display

December 17th, 2006 by Andrew Wells

If you are a technical poster, you find yourself posting HTML code in forums, but then the forum software displays the formatted text instead of the code. This tool will convert the code so that the actual HTML will show up after posting.

This is one of simplest tools on my site. It makes use of PHP’s htmlspecialchars() function and simply outputs the return of that function.

Every character has their HTML character code. The htmlspecialchars() function converts the appropiate characters into their character code to avoid them being formatted in the browse, thus showing the code.

Note: This tool is intended for showing small segments of code. For larger chunks, please use the HTML Practice Area.

See this tool at: http://www.pr0gr4mm3r.com/html_display/

Leave a Reply