Tuesday, 29 January 2008

Tags inside PRE

PRE tags are used to format text; linebreaks, spaces and tabs are all recognised from the source instead of being ignored. One thing they don't display (without a small tweak) is tags (e.g. <test>) - the angle brackets and any content will be omitted but there is a solution. Simply replace the first angle bracket with &lt; (e.g. &lt;test>).

No comments: