print story

How to display html code in blog post

While writing my previous post, I had a problem displaying the html code in my post.
I found 2 ways on how to display html code in my post.

First, the hard way.
1. Replace < with <
2. Replace > with &gt;
3. Replace with "

Do this with notepad or wordpad with replace function.

The easy way
1. Go to
2. Click Tools
3. Choose Encode/decode HTML entities
or click here
4. Paste your html code in the box/form and click Encode.
5. Copy and paste the encoded code to your blog or website.


Post a Comment