Sunday, February 24, 2008

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 http://centricle.com
2. Click Tools
3. Choose Encode/decode HTML entities
or click here http://centricle.com/tools/html-entities/
4. Paste your html code in the box/form and click Encode.
5. Copy and paste the encoded code to your blog or website.

No comments:

Post a Comment