Saturday, June 14, 2008

How to display HTML code in your blog post.

This is tip how to display HTML code in your blog post. If you try past HTML code as it is, it will never be displayed. Because browsers interpret them rather than display.

There are already couple of posts recommending to do following replacement in your HTML code:

Replace < (i.e. less than sign) with &lt;
Replace > (i.e. greater than sign) with &gt;
Replace (i.e. quote mark) with &quot;


But there is a faster way and much more easier. You can encode HTML code for instance by Encode/Decode HTML tool. Just simply paste the code and "encode". Then copy your encoded code and past it to your blog post.

0 comments: