+4  A: 

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
A: 

If you don't you'll eventually come across code like: print "</code>". And it won't work non-escaped.

Greg Miller
good point .
Svish