[Javascript] Display rtf in web page

BEKIM BACAJ trojani2000 at hotmail.com
Sat Mar 15 06:05:42 CST 2003


The short answer would be this:

>          <script>
>          alert('help')
>          </script>  "

But I'm sure you allready know the longer one, -resp., finding and replacing 
"<" ">" in script tags.

Regards!



>From: "Andrew Gibson" <andyg at ihug.co.nz>
>Reply-To: javascript at LaTech.edu
>To: <javascript at LaTech.edu>
>Subject: [Javascript] Display rtf in web page
>Date: Fri, 14 Mar 2003 10:52:26 +1300
>
>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
>
>
>
>
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript


_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus




More information about the Javascript mailing list