Some of my first posts suffer from this problem from using blogger to keep notes on code... Blogger's interpretation engine changes the left and right brackets so that the code reads incorrectly. I would imagine this was meant as a security issue, but wrapping code in "pre" or "code" tags doesn't work in blogger to display code either... oh well.
This issue can be resolved by using the HTML 4.0 encoding which I have surrounded by quotes and separated each character by spaces below for the two characters that give me the most issues.
Eventually I will code my own blog, but for the time being this works.
< "& l t ;" - Left Bracket
> "& g t ;" - Right Bracket
n b s p ;" - No-Break-Space [needs to be inserted in the "Edit Html" tab]
Source:
http://www.alanwood.net/demos/ansi.html
Saturday, February 23, 2008
Needing to HTML encode characters for code displaid in Blogger
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment