[Javascript] Display rtf in web page

Andrew Gibson andyg at ihug.co.nz
Thu Mar 13 15:52:26 CST 2003


I have an Web mail application, which displays messages on a web page.

Suppose the message is sent in RTF, like in Outlook. How can I make sure the
message displays correctly...

for example if the message contained HTML  like

" I can't get this to work...
<script>
alert('help')
</script>  "

When I display in the web page, the script runs, rather than just displaying
it as text. I can put it in a textarea but that would remove all the other
formatting of course....

Andrew








More information about the Javascript mailing list