Yes, you should use HTML entities inside of <pre> and <code>. Some browsers are forgiving, but leaving <
and >
as non-entities won't work in all cases.
Matt Bridges
2009-06-30 13:18:44
Yes, you should use HTML entities inside of <pre> and <code>. Some browsers are forgiving, but leaving <
and >
as non-entities won't work in all cases.
If you don't you'll eventually come across code like: print "</code>". And it won't work non-escaped.