Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: HTML <=> Text convertion

by Anonymous Monk
on Dec 10, 2003 at 23:49 UTC ( #313923=note: print w/replies, xml ) Need Help??


in reply to HTML <=> Text convertion

if you just want to strip tags and convert entities:
s/<.*?>//g; s/&gt;/>/g; s/&lt;/</g; s/&apos;/'/g; s/&quot;/"/g/; s/&amp;/&/g;
may do the trick

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://313923]
help
Chatterbox?
[erix]: Take your bottles -- you're all invited! :)
[panwarsagar]: I have started learning Perl and my moto is to process a text file and storing the contents in a Data Base

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2017-03-28 12:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (330 votes). Check out past polls.