Display code snippet as text?

Hi all

I’ve searched a few places though everything points to using a small piece of javascript.
Hoping this can be solved using CSS.

How do I render the code between <h1> as text without adding extra tags?

<h1><tag /></h1>

Thanks, CB

You just replace the code characters with the character references:

<h1>[COLOR="#FF0000"]&l[/COLOR][COLOR="#FF0000"]t;[/COLOR]tag /[COLOR="#FF0000"]&g[/COLOR][COLOR="#FF0000"]t;[/COLOR]</h1>

That will render as a heading that looks something like this:

<tag />

You just replace the code characters with the character references:

:cool:

Cheers Ralph works great.
I was about to write a few lines of JS… ha must be late.