i have news uploaded from a form wich have a rich editor to allow the user to choose bold or italic.
When the user copy/ paste from editors like word or openoffice
many tags come joined with the text.
eg:
<P class=MsoNormal style=\"MARGIN: 0cm 0cm 0pt\"><SPAN style=\"FONT-SIZE: 8pt; FONT-FAMILY: Verdana; mso-bidi-font-size: 12.0pt\">
So my attempt to shows the firsts 200 characters fail because many times
the 200 first chars are html propytary tags from these editors (alway enclosed)
by "<>" )
How can i workaround it? i try using:
$twolines = substr(strrchr($row["description"], ">"), 1, 200). "...";
thank“s in advance