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…
buy@aloe.vera.gel” rel=”nofollow”>……
Need cheap generic VIAGRA?…
buy@generic.abana” rel=”nofollow”>……
Need cheap generic ABANA?…
buy@generic.LEVITRA” rel=”nofollow”>……
Need cheap generic LEVITRA?…
Buy@Coral.Calcium.Online” rel=”nofollow”>……
Buygeneric pills…
Buy@Cheap.Coral.Calcium” rel=”nofollow”>……
Buywithout prescription…
Buy@Discount.Coral.Calcium” rel=”nofollow”>.…
Buyit now…
Purchase@Coral.Calcium.Online” rel=”nofollow”>……
Buywithout prescription…
Get@Coral.Calcium.Online” rel=”nofollow”>..…
Buygeneric drugs…
Buy@Abana.Online” rel=”nofollow”>.…
Buynow it…
Order@Discount.Abana” rel=”nofollow”>..…
Buygeneric pills…
Purchase@Abana.Online” rel=”nofollow”>..…
Buydrugs without prescription…
Purchase@Cheap.Abana” rel=”nofollow”>……
Buygeneric pills…
Order@Discount.Abilify” rel=”nofollow”>..…
Buyno prescription…
Cheap@Abilify.Online” rel=”nofollow”>..…
Buygeneric meds…
Buy@Discount.Acai” rel=”nofollow”>..…
Buynow it…
Order@Acai.Online” rel=”nofollow”>……
Buynow…
Order@Cheap.Acai” rel=”nofollow”>……
Buynow it…
Purchase@Acai.Online” rel=”nofollow”>……
Buynow…
Purchase@Cheap.Acai” rel=”nofollow”>……
Buygeneric drugs…
Buy@Generic.Acai” rel=”nofollow”>..…
Buywithout prescription…
Purchase@Acai.Without.Prescription” rel=”nofollow”>..…
Buynow it…
Cheap@Generic.Acai” rel=”nofollow”>..…
Buyit now…
Buy@Discount.Coral.Calcium” rel=”nofollow”>..…
Buywithout prescription…
Order@Coral.Calcium.Online” rel=”nofollow”>..…
Buyno prescription…
Buy@Discount.Coral.Calcium” rel=”nofollow”>..…
Buygeneric meds…
Buy@Acai.Online” rel=”nofollow”>.…
Buyit now…
Order@Cheap.Coral.Calcium” rel=”nofollow”>.…
Buygeneric drugs…
Purchase@Cheap.Coral.Calcium” rel=”nofollow”>……
Buywithout prescription…
Buy@Acai.Online” rel=”nofollow”>..…
Buygeneric drugs…
where@can.i.purchase.max.acai” rel=”nofollow”>..…
Buynow it…
Buy@Cheap.Acai” rel=”nofollow”>..…
Buydrugs without prescription…
Buy@Discount.Acai” rel=”nofollow”>……
Buygeneric drugs…
Buy@Discount.Acai” rel=”nofollow”>……
Buyit now…
Order@Cheap.Acai” rel=”nofollow”>……
Buyit now…
Order@Cheap.Acai” rel=”nofollow”>……
Buywithout prescription…
Order@Cheap.Acai” rel=”nofollow”>……
Buygeneric drugs…
Order@Discount.Acai” rel=”nofollow”>..…
Buywithout prescription…
Cheap@Acai.Online” rel=”nofollow”>..…
Buynow it…
Buy@Generic.Acai” rel=”nofollow”>..…
Buydrugs without prescription…
Buy@Acai.Without.Prescription” rel=”nofollow”>.…
Buygeneric drugs…
where@can.you.buy.acai.berry” rel=”nofollow”>..…
Buygeneric drugs…
Buy@Discount.Energy.Boost” rel=”nofollow”>.…
Buynow it…
Order@Cheap.Energy.Boost” rel=”nofollow”>.…
Buynow it…
Purchase@Energy.Boost.Online” rel=”nofollow”>.…
Buygeneric drugs…
Cheap@Energy.Boost.Online” rel=”nofollow”>.…
Buynow it…
Get@Energy.Boost.Online” rel=”nofollow”>.…
Buygeneric pills…
Buy@Accupril.Online” rel=”nofollow”>.…
Buygeneric meds…
Order@Cheap.Accupril” rel=”nofollow”>.…
Buygeneric drugs…
Buy@Cheap.Accutane” rel=”nofollow”>.…
Buygeneric drugs…
Order@Accutane.Online” rel=”nofollow”>.…
Buynow it…
Get@Accutane.Online” rel=”nofollow”>.…
Buygeneric meds…
Buy@Accutane.Without.Prescription” rel=”nofollow”>.…
Buygeneric drugs…
Order@Aciphex.Online” rel=”nofollow”>.…
Buyno prescription…
Cheap@Aciphex.20mg” rel=”nofollow”>.…
Buygeneric meds…
Buy@Actonel.35mg” rel=”nofollow”>..…
Buygeneric drugs lzt…
Buy@Generic.Actonel.35mg” rel=”nofollow”>.…
Buyno prescription luw…
Actonel@35mg.Without.Prescription” rel=”nofollow”>.…
Buygeneric drugs zfk…
Order@Cheap.Actoplus.Met” rel=”nofollow”>..…
Buygeneric drugs krg…
Order@Discount.Actoplus.Met” rel=”nofollow”>..…
Buygeneric meds qmo…
Purchase@Actoplus.Met.Online” rel=”nofollow”>..…
Buygeneric pills zdg…
Purchase@Discount.Actos” rel=”nofollow”>……
Buywithout prescription xiu…
Buy@Generic.Actos” rel=”nofollow”>..…
Buygeneric drugs eet…
Buy@Discount.Adalat” rel=”nofollow”>……
Buyit now oil…
Order@Adalat.Online” rel=”nofollow”>..…
Buygeneric meds qhr…
Order@Discount.Adalat” rel=”nofollow”>.…
Buygeneric meds unm…
Purchase@Cheap.Adalat” rel=”nofollow”>..…
Buygeneric meds abx…
Order@Coral.Calcium.Online” rel=”nofollow”>..…
Buynow it tly…
Purchase@Cheap.Coral.Calcium” rel=”nofollow”>..…
Buynow it vhx…
Buy@Abilify.Online” rel=”nofollow”>..…
Buywithout prescription dyo…
Purchase@Generic.Abilify.5mg.10mg.15mg.20mg.30mg” rel=”nofollow”>..…
Buywithout prescription yen…
Cheap@Generic.Abilify.5mg.10mg.15mg.20mg.30mg” rel=”nofollow”>.…
Buywithout prescription yyn…
Abilify@5mg.10mg.15mg.20mg.30mg.Without.Prescription” rel=”nofollow”>……
Buygeneric meds svb…
Buy@Acai.Online” rel=”nofollow”>……
Buydrugs without prescription vrg…
Buy@Cheap.Acai” rel=”nofollow”>..…
Buyno prescription wkp…
Order@Acai.Online” rel=”nofollow”>..…
Buyno prescription jui…
Purchase@Cheap.Acai” rel=”nofollow”>..…
Buyno prescription tao…
Purchase@Discount.Acai” rel=”nofollow”>……
Buydrugs without prescription jlg…
Cheap@Acai.Online” rel=”nofollow”>……
Buyit now sge…
Buy@Generic.Acai.Without.Prescription” rel=”nofollow”>……
Buywithout prescription ccw…
Order@Acai.Without.Prescription” rel=”nofollow”>.…
Buynow it lmg…
Purchase@Acai.Without.Prescription” rel=”nofollow”>.…
Buyit now ojb…
Purchase@Generic.Acai.500mg” rel=”nofollow”>.…
Buygeneric drugs itj…
Order@Energy.Boost.Online” rel=”nofollow”>.…
Buygeneric drugs axm…
Purchase@Discount.Accutane” rel=”nofollow”>.…
Buygeneric drugs mby…
Cheap@Generic.Accutane” rel=”nofollow”>..…
Buyno prescription gdt…
Cheap@Generic.Accutane.10mg.20mg” rel=”nofollow”>……
Buynow it zdg…
Accutane@10mg.20mg.Without.Prescription” rel=”nofollow”>..…
Buygeneric drugs ajd…
Cheap@Generic.Aciphex” rel=”nofollow”>..…
Buyno prescription lka…
Buy@Discount.Acomplia” rel=”nofollow”>..…
Buydrugs without prescription faj…
Purchase@Discount.Acomplia” rel=”nofollow”>.…
Buydrugs without prescription tdg…
Purchase@Discount.Acomplia” rel=”nofollow”>.…
Buynow tqa…
Purchase@Discount.Acomplia” rel=”nofollow”>……
Buynow ela…
Buy@Actonel.Online” rel=”nofollow”>.…
Buygeneric pills oir…
Order@Actonel.Without.Prescription” rel=”nofollow”>..…
Buyno prescription jwi…
Order@Cheap.Advair” rel=”nofollow”>……
Buygeneric drugs vbr…
Cheap@Advair.Online” rel=”nofollow”>.…
Buygeneric drugs nih…
Order@Generic.Advair” rel=”nofollow”>..…
Buydrugs without prescription hak…
Buy@Advair.25mcg50mcg.25mcg125mcg.25mcg250mcg.50mcg500mcg.50mcg100mcg.50mcg250mcg” rel=”nofollow”>..< /blo…
Buygeneric meds dxy…
Purchase@Discount.Albenza” rel=”nofollow”>……
Buynow fjl…
Buy@Aldactone.Online” rel=”nofollow”>.…
Buygeneric drugs hwi…
Buy@Discount.Aldactone” rel=”nofollow”>.…
Buydrugs without prescription xab…
abilify@and.gemfibrozil” rel=”nofollow”>.…
Buyno prescription…
calcium@coral.buy” rel=”nofollow”>.…
Buydrugs without prescription…
buy@acai.berry.juice” rel=”nofollow”>..…
Buygeneric drugs…
accutane@krupnick.class.action” rel=”nofollow”>..…
Buynow…
allopurinol@cheap.buy” rel=”nofollow”>..…
Buyit now…
aloe@vera.juice.benefits.best” rel=”nofollow”>.…
Buygeneric meds…
aloe@ferox.gel.buy” rel=”nofollow”>.…
Buynow it…
alphagan@refrigerated.buy” rel=”nofollow”>……
Buygeneric drugs…
abilify@company.buy” rel=”nofollow”>.…
Buywithout prescription…
abilify@and.sleep.issues” rel=”nofollow”>..…
Buydrugs without prescription…
abilify@does.it.work” rel=”nofollow”>……
Buygeneric meds…
blue@sky.energy.solar.boost.3048” rel=”nofollow”>……
Buynow it…
aloe@vera.juice.for.sale” rel=”nofollow”>..…
Buyit now…
amoxicillin@online.buy” rel=”nofollow”>.…
Buygeneric drugs…
side@effects.of.aricept” rel=”nofollow”>..…
Buyit now…
arjuna@pills.buy” rel=”nofollow”>..…
Buygeneric meds…
Download@pop.Rock” rel=”nofollow”>……
Search rock US Charts…
herpes kelly dating kansas…
Buy_no prescription…
hiv research being conducted in usa…
Buy_generic pills…
lung cancer survival rates…
Buy_generic meds…
natural cures for atopic dermatitis eczema…
Buy_without prescription…
intravenous fluid heart rate…
Buy_drugs without prescription…
symptons of depression…
Buy_generic meds…
does herpes rash come and go…
Buy_now it…
warfarin zoloft…
Buy_drugs without prescription…
recent advances in cancer breast…
Buy_now…
strong insulin…
Buy_generic meds…
advair and contraindications…
Buy_generic meds…
canine heat cycles…
Buy_without prescription…
viagra order uk…
Buy_generic pills…
number of obese children in america…
Buy_generic meds…
erectile dysfunction herbal treatment…
Buy_drugs without prescription…
weight loss disclaimer law…
Buy_drugs without prescription…
brown algae good for slow thyroid…
Buy_generic drugs…
soft food diet ideas…
Buy_drugs without prescription…
novo 50 allergy medicine…
Buy_now it…
urinary tract infection canine…
Buy_generic pills…
apo amitriptyline…
Buy_generic pills…
behavior symptoms of prescription drug addiction…
Buy_generic meds…
what are the trimesters of pregnancy…
Buy_generic drugs…
honey for diabetes…
Buy_generic meds…
does testosterone make you gain weight…
Buy_generic drugs…
warfarin sod…
Buy_drugs without prescription…
tuna during pregnancy…
Buy_generic meds…
conquer online hacking tools…
Buy_generic drugs…
verapamil side effects…
Buy_drugs without prescription…
symptoms of prescription drug abuse…
Buy_drugs without prescription…
percent of obese children in usa…
Buy_now it…
effects of alcohol on amoxicillin…
Buy_generic meds…
protonix vs aciphex…
Buy_generic drugs…
spironolactone reduces height…
Buy_no prescription…
abdominal hernia photos…
Buy_generic pills…
lithium alcohol…
Buy_generic drugs…
depression affects memory…
Buy_now it…
gestational surrogacy…
Buy_now…
weight loss doctors in memphis tennessee…
Buy_generic drugs…
combination food diet…
Buy_drugs without prescription…
embed video webpage…
Buy_generic drugs…
faye sick lung cancer…
Buy_drugs without prescription…
what is plavix…
Buy_drugs without prescription…
trigger point injections with lidocaine…
Buy_without prescription…
postpartum remeron…
Buy_no prescription…
blood pregnancy test jacksonville fl…
Buy_generic meds…
stress from clinical duty…
Buy_without prescription…
swollen ankles headache pregnancy…
Buy_generic drugs…
oral cancer hospital…
Buy_generic meds…
saline for nebulizer…
Buy_generic pills…
mini insulin fridge…
Buy_generic drugs…
joke male birth control…
Buy_generic meds…
azithromycin 250 mg tablets…
Buy_now it…
avelox treats for bacteria…
Buy_drugs without prescription…
imodium during pregnancy…
Buy_generic meds…
drug treatment for bipolar disorder…
Buy_generic pills…
diabetes popcorn…
Buy_generic pills…
prozac daily strength…
Buy_generic pills…
acne in cats…
Buy_it now…
atlanta zyprexa lawyers…
Buy_generic drugs…
nursing times alzheimer mavis ford…
Buy_it now…
diseaeses contracted from sand fleas…
Buy_now it…
viagra prostate removal…
Buy_generic drugs…
clinical pharmacists prescribe medication…
Buy_it now…
office of generic drug…
Buy_generic drugs…
chronic bronchitis from marijuana…
Buy_now…
decreased appetite during pregnancy…
Buy_generic drugs…
maximum daily dose for venlafaxine…
Buy_it now…
natural cures for premature ejaculation…
Buy_generic drugs…
can a woman have colorectal cancer…
Buy_drugs without prescription…
resume clinical sas programmer…
Buy_generic meds…
food low in cholesterol…
Buy_now it…
canadian paediatric diabetes association…
Buy_now…
build muscle mass diet…
Buy_drugs without prescription…
breast cancer awareness wristband…
Buy_generic meds…
discovery of zinc in human health…
Buy_now…
ayurvedic ashwagandha zyban…
Buy_generic pills…
healing lithium water in utah…
Buy_no prescription…
sphenoid sinusitis causes double vision…
Buy_it now…
eye drops canine paralysis…
Buy_now…
maple syrup and lemon juice diet…
Buy_it now…
hiv quality of life survey tools…
Buy_drugs without prescription…
liquid tylenol and dogs…
Buy_without prescription…
most successful diet ever…
Buy_generic pills…
how can i lower my cholesterol…
Buy_generic drugs…
john degan anna degan il…
Buy_drugs without prescription…
autoimmune hepatitis glyconutrients…
Buy_generic meds…
advisory group on hepatitis uk…
Buy_no prescription…
regulations for dementia units…
Buy_drugs without prescription…
food allergy and adenoids…
Buy_without prescription…
boost metabolism foods…
Buy_now…
medicare drugs covered…
Buy_generic meds…
state of arizona ontiveros drug…
Buy_now it…
inpatient drug rehab sanford fl…
Buy_it now…
postnatal doctor visit costs…
Buy_generic drugs…
substitute for diovan hct…
Buy_now…
lexapro versus prozac differences…
Buy_without prescription…
sample ncp for diabetes…
Buy_without prescription…
what year was advil introduced…
Buy_now it…
acyclovir stada cream…
Buy_generic drugs…
Download@pop.Rock” rel=”nofollow”>.…
Buy rock US Charts…
side@effects.from.the.drug.protonix” rel=”nofollow”>……
Buynow it…
Download@alternative.Rock” rel=”nofollow”>.…
Search rock UK Charts…