HTML Encoding Problem

2 replies
I'm looking to find a way to enter some normal html coding into a submission box, convert it to encoded html and be able to see what the encoded html would look like on a webpage that is built to accept it. Is there a way of doing this? If not, could you code it?

An an example:

enter this:
<bold style="font-weight: bold;">this is bold</bold><span style="font-weight: bold;">

convert it to this:
&lt;bold style=&quot;font-weight: bold;&quot;&gt;this is bold&lt;/bold&gt;&lt;span
style=&quot;font-weight: bold;&quot;&gt;

and then view what it would look like on a page:
this is bold
#encoding #html #problem

Trending Topics