Ian,

I just had to do this the other day  pulling an html based article and
stripping the html off to send as text only as well as keeping the format.
If WDDX is not what you want to use, follow up on the REReplaceNoCase
function that Jochem was talking about. Here is a look at the code that d
id
it.

<!--- START OF HTML STRIPPING --->
<cfset resultspacket = REReplaceNoCase(resultspacket,"#chr(9)#","","ALL
")>
<cfset resultspacket = REReplaceNoCase(resultspacket,"#chr(13)#","","AL
L")>
<cfset resultspacket = REReplaceNoCase(resultspacket,"#chr(10)#","","AL
L")><cfset resultspacket=
REReplaceNoCase(resultspacket,"<br>","#chr(13)##chr(10)#","ALL")>
<cfset resultspacket = REReplaceNoCase(resultspacket,"<[^>.]+>","","ALL
")>
<!--- END OF HTML STRIPPING --->

Basicly I remove any breaks, tabs, and or new lines  then I replace the <
br>
with a carrage retirn and a new line, then I striped the HTML out. This c
ode
worked out great I hope you can use it.

Ernie Pena
Sr Coldfusion Developer
University of Texas M.D. Anderson



----- Original Message -----
From: "Neil Clark" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, January 16, 2002 6:24 AM
Subject: RE: HTML Parser


Serialise it as a WDDX packet and store the packet..


______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to