View Single Post
  #4 (permalink)  
Old 03-03-04, 07:54 PM
Skeleton Man Skeleton Man is offline
Community Liaison
 
Join Date: Jun 2003
Location: Australia
Posts: 406
Thanks: 0
Thanked 0 Times in 0 Posts
My appologies, I had windows open from both PHP and Perl forums so I didn't see which I was posting to.

Perl version:

Code:
$code = "This<HTML>should<head>be<foo>HTML<bar>free</b>";
$code =~ s/<.+?>//g;

print "Content-type: text/plain\n\n";
print $code;
Reply With Quote