Forum Moderators: coopster

Message Too Old, No Replies

Html to Text

html parse and storing text only

         

kkonline

7:05 am on Jul 19, 2009 (gmt 0)

10+ Year Member



I am writing a script; for which I want to suppress all the html content and store the data only as simple text.

For example the database has

Posted by Dave Merten<p><img src="http://www.macsimumnews.com/images/uploads/fix11-1.jpg" border="0" alt="image" name="image" width="69" height="71" />The System Management Controller—or SMC for short—is an integrated circuit (computer chip) that is on the logic board of the computer. As the name implies, it is responsible for power management of the computer. It controls backlighting, hard disk spin down, sleep and wake, some charging aspects, trackpad control, and... </p><br clear="both"/>
<br clear="both"/>
<a href="http://ads.pheedo.com/click.phdo?p=1"><img alt="" border="0" src="http://ads.pheedo.com/img.phdo?p=1" /></a>

this should be stored as


The System Management Controller—or SMC for short—is an integrated circuit (computer chip) that is on the logic board of the computer. As the name implies, it is responsible for power management of the computer. It controls backlighting, hard disk spin down, sleep and wake, some charging aspects, trackpad control, and...

How can I achieve this?

dreamcatcher

7:25 am on Jul 19, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



strip_tags [us2.php.net] maybe?

dc