How to strip html tags from text in PHP
August 2, 2008 · Print This Article
Recently I faced small problem when working for one of my clients. He stores html tags in database:
<font color="00ff00">Some text</font>
I need quick and dirty solution, so I decided to use php function strip_tags()
This function removes all html text leaving only text, this was exactly what I need.
The final code look like this:
$text = strip_tags('Text‘);



















Buy:Maxaman.VPXL.Cialis.Viagra Super Active+.Super Active ED Pack.Zithromax.Soma.Propecia.Levitra.Viagra Professional.Viagra Soft Tabs.Cialis Soft Tabs.Cialis Super Active+.Viagra.Cialis Professional.Viagra Super Force.Tramadol….
20 http://ipanasoniclzsg.05KIAPARTS.US/tag/R2-D2+20+inch/ : R2-D2…
inch…