Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Finding and replacing 'nonvalid' html tags?

by gav^ (Curate)
on Jun 04, 2002 at 21:20 UTC ( [id://171639]=note: print w/replies, xml ) Need Help??


in reply to Finding and replacing 'nonvalid' html tags?

You might want to investigate HTML::TagFilter which makes this pretty easy.

Or simply use HTML::Parser, writing a handler for start/end tags and only outputting ones you want (examples are here).

Update:
If you wanted a list of valid HTML tags, you could look at HTML::Tagset and %HTML::Tagset::isKnown

gav^

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://171639]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-03-29 11:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found