We all hope that Blogger will soon evolve out of the stone age and provide bloggers with the ability to wrap blocks of html, c, java, et. al. in <code> tags for automatic entity conversion and formatting. Unfortunately, that has yet to happen and you will have to escape your HTML code by hand.
Or not...
There are several free HTML escapers floating around the net and I have even tried my hand at putting together one for my own use. What has to happen to display HTML code in a Blogger post is that all "<" and ">" characters need to be replaced with their HTML entity equivalents "<" and ">".
My JavaScript HTML Escape utility is located at http://pages.compender.com/htmlescape.htm. Feel free to try it out, examine the source and bookmark it for future use. I also added it to my new Link List element titled Tools here on the Compender blog.
-R
Tuesday, December 11, 2007
How To Post HTML Code In Your Blog Posts
Posted by
Raymond
at
10:58 AM
Tags:
blogger,
html,
javascript,
posting,
publishing
Subscribe to:
Post Comments (Atom)
2 comments:
thanz boss....
i have been searching for this for last 2 days ...even in the google groups...
now i m regular visitor of your blog...
sir, i m new to blogging field....
pleaze guide me on what type of content we must have in the blog.
- http://coolaery.blogspot.com/
Thank you sooooooooooooo much. I have been going crazy trying to figure out how to do this. You are a blogger's saviour.
Post a Comment