Can anyone tell me how to display HTML code inside a div without it getting translated by the browser? I tried the <code> tag, but it didn’t work. Any ideas? Thanks.
can be used, but you need to mask the < > signs with < and >
or you can use php htmlspecialchars() if that is available...[/QUOTE]
Thanks for the suggestion to use htmlspecialchars(). That's just what I needed. I am encountering one problem though: I put 'n' chars in my string, and either stripslashes() or htmlspecialchars() seems to be removing them. Do you know how I can prevent this from happening? Thanks a lot.