Regex to remove all tags from a web page

Alex Tweedly alex at tweedly.net
Mon Oct 31 09:00:39 EST 2005


Eric Chatonet wrote:

> Hi Alex,
>
> Thanks a lot.
> That's a first good step since the out text is about 20/30% of the in  
> text :-)
> HTML tags are stripped but extra code (php,java, etc.) of course  
> remains.
> Any ideas for these ones?

In the samples I tried, it strips out php code  - it's all enclosed in 
<?php ..........>
That may be just the naive way I did the PHP, I only tried against my 
own code.

Can you send an example of what it doesn't do ?
(send it direct to me off-list if that's preferable)


-- 
Alex Tweedly       http://www.tweedly.net



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.361 / Virus Database: 267.12.6/151 - Release Date: 28/10/2005




More information about the use-livecode mailing list