Geoff,
I use this in my own CM, because SQL Server dislikes fulltext search on
columns with html chars in it.
function stripHTML(sourceText) {
return REReplace(sourceText, "<[^>]*>", "", "ALL");
}
Micha Schopman
Software Engineer
Modern Media, Databankweg 12 M, 3821 AL Amersfoort
Tel 033-4535377, Fax 033-4535388
KvK Amersfoort 39081679, Rabo 39.48.05.380
------------------------------------------------------------------------
------------------------------------------------------------------------
-----
Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren
de interactie met uw doelgroep.
Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer
informatie zie www.modernmedia.nl
------------------------------------------------------------------------
------------------------------------------------------------------------
-----
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Geoff
Bowers
Sent: woensdag 2 februari 2005 10:50
To: FarCry Developers
Subject: [farcry-dev] Re: RSS HTML Stripper
Paul Hastings wrote:
> Geoff Bowers wrote:
>> regex='[^[:ascii:]]'; // magic pixy dust
> not to me it's not. is RSS defined as ASCII only? wouldn't this shoot
> the toes off any i18n feeds?
Yeah... you're prolly right :) Still, we need something more elegant
than a list of replacements. Is there a defined range of characters we
can look to replace? All we really need is a regex that matches for a
list of nasty characters -- but how to find that list succinctly?
-- geoff
http://www.daemon.com.au/
---
You are currently subscribed to farcry-dev as:
[EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/
---
You are currently subscribed to farcry-dev as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/