The easiest way I know is to replace the < and > with < and > that way it's not html anymore. There are several other codes like these for & symbols, etc.
Where is the text coming from? If it's in javascript than you're easiest way would be to do a regex replace in javascript.