HighDots Forums  

Re: is my HTML tag stripper up to par?

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Re: is my HTML tag stripper up to par? in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Shawn K. Quinn
 
Posts: n/a

Default Re: is my HTML tag stripper up to par? - 08-24-2003 , 06:49 PM






[adding c.i.w.a.tools and removing c.i.w.a.html from followups]

Dan Jacobson wrote:

Quote:
Is my HTML tag stripper up to par?
$ cat striptag
#!/usr/bin/perl -w
#usage example: striptag font div < file.html
read( STDIN, $_, -s STDIN );
foreach my $tag (@ARGV) { s@</?$tag.*?>@@sig }
print;
Looks pretty good to me. This could come in *very* handy when fixing pages
with old garbage tags in them.

--
Shawn K. Quinn


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.