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: <bold style="font-weight: bold;">this is bold</bold><span style="font-weight: bold;"> and then view what it would look like on a page: this is bold
Is this is just for you there are a number of free programs that you can get that have WYSIWHG (what you see is what you get) editors.
Untested, but this might just be an oversimplified example, a very basic one <html> <body> Put your HTML Code here: <textarea rows="5" cols="40" id="htmlCode"></textarea> <br/><input type="button" value="Click to preview HTML" onclick="document.getElementById('htmlPreview').innerHTML = document.getElementById('htmlCode').value" /> <br/>HTML Preview: <div id="htmlPreview"></div> </body> <html> ... PHP: Hendra