Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Answer: how-to strip empty HTML tags like b /b

by tachyon (Chancellor)
on Sep 06, 2001 at 05:40 UTC ( #110470=categorized answer: print w/replies, xml ) Need Help??

Q&A > regular expressions > how-to strip empty HTML tags like <b> </b> - Answer contributed by tachyon

A more complete option is not Perl. Use HTML Tidy which is by w3c's Dave Raggett. I just tested it and it will strip empty tags a well as a doing many other useful things. Get your free copy here http://www.w3.org/People/Raggett/tidy/ or get a Win32 GUI version here http://perso.wanadoo.fr/ablavier/TidyGUI/

  • Comment on Answer: how-to strip empty HTML tags like b /b
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[jedikaiti]: failed
[Tux]: No, it PASS'ed (testing patches to pm-cb-g)
[Tux]: http://tux.nl/ Files/201709191837 44.png

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2017-09-19 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (225 votes). Check out past polls.

    Notices?