Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: strip html tags and special characters in perl while inserting the text in to database.

by blazar (Canon)
on Jun 09, 2007 at 16:07 UTC ( [id://620195]=note: print w/replies, xml ) Need Help??


in reply to strip html tags and special characters in perl while inserting the text in to database.

When using regular expressions i don't know the exact special character to match.

(naikonta already told you 'bout HTML tags.) This all depends on how special the charachters you want to exclude really are. What do you want? ASCII only? And if so, then what's to be of the excluded charachters? Are you just stripping them? Do you want to encode them some way?

  • Comment on Re: strip html tags and special characters in perl while inserting the text in to database.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-19 16:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found