MessageWe use <@SCRIPT> (Server-side JS) to do that:
<@SCRIPT SCOPE="IMMED">
var str = new String (server.getVariable ("resultSet[<@CURROW>,6]",
"local"))
// remove junk
str = str.replace (/<[^>]+>/g, " ");
str = str.replace (/[^\x20-\x7F]/g, " ");
str = str.replace (/ +/g, " ");
server.setVariable ("body", words.join (" "), "method");
</@SCRIPT>
Joanna Ruth Wirtz
Internet Applications Programmer
Christianity Today International
http://www.ChristianityToday.com
----- Original Message -----
From: James Macfarlane
To: Multiple recipients of list witango-talk
Sent: Friday, April 19, 2002 11:11 AM
Subject: Witango-Talk: REGEX, remove HTML tags
Hi,
I'm trying to remove HTML tags from a string using a regular expression:
<@ASSIGN NAME="temp" VALUE='<@REGEX EXPR="<[^>]*>" STR="1234<Font
face='arial'>5678" TYPE=E>' SCOPE="Local">
I get back an array:
<TABLE BORDER="1"><TR><TD><Font
face='arial'></TD><TD>5</TD><TD>19</TD></TR></TABLE>
I was hoping to simply get back a strign without the HTML in it.
Any ideas how to do this?
- James.
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
with unsubscribe witango-talk in the message body