in reply to substitution on

Your question is next to impossible to understand since we can't tell the difference between when you meant to say "<" and when you meant to say "&lt;". Please repost your question (using Preview until it's readable).

To get <To get &lt;
Outside of code tags&lt;&amp;lt;
Inside of code tags<&lt;