HTML Encoding Form
The purpose of this form is pretty simple. It takes some sample mark-up, encodes all of the html entities, and spits out encoded text for your to display.
Enter your sample code into the top textarea box. Click “Encode HTML.”
The encoded text should appear in the second textarea and in a <pre> block below that textarea. Copy and paste the text into your own page, and it should display just fine – without rendering the HTML.
Perfect for writing HTML tutorials.
Three Ways to Display Sample Html in a Web Browser | Review of Information about Web Design said this on February 20th, 2008 at 1:43 pm
[...] only problem is that you need to escape all of the characters. However, you can take a shorcut – use this form to do the escaping for you. Copy and paste your own code in, and the escaped code will be created on the [...]
Rune Jensen said this on July 27th, 2008 at 5:15 am
You have a security issue – or at least a coding/quality issue – with that form, only escaping
It fails with the HTML remark begin and nothing else (reading the code of this document instead of the HTML pasted, because it thinks the HTML-remark is part of the document).
On the other hand I have tried a few other tools like this, and they all fail on the HTML-remark;)
Three Ways to Display Sample Html in a Web Browser « Better Php said this on August 26th, 2009 at 12:42 am
[...] problem is that you need to escape all of the characters. However, you can take a shorcut – use this form to do the escaping for [...]
php talk » Three Ways to Display Sample Html in a Web Browser said this on November 22nd, 2009 at 10:44 am
[...] problem is that you need to escape all of the characters. However, you can take a shorcut – use this form to do the escaping for [...]
Woccle.com Webmasters: Three Ways to Display Sample Html in a Web Browser said this on January 17th, 2010 at 4:48 pm
[...] problem is that you need to escape all of the characters. However, you can take a shorcut – use this form to do the escaping for [...]