Re: [Dave] <P>'d Off with Formatting Options!
Hi Dave, Thanks,
If I use the function directly in the page, there is no problem. But, if I use the function with a field of the table ($record['page']), the function does not remove the tags.
The reason, it is that TinyMCE automatically produced a paragraph with a no-break space (unbreakable) to respect the standard. <p>unbreakable</p>
Here what my UTF8 page gives with Iso-8859-1: Capture3.gif
utf8_decode($record['page'])
I do not know if I explain correctly ?
It seems that many users of TinyMCE encounter this problem.
It is a subject which is discussed much on the forum of Tiny.
While waiting to find a good solution, I found :
$chaine = eregi_replace('<p>([^A-Za-z0-9])*</p>','',$chaine);
It is not best the solution, because it does not make it possible to remove the other tags empty (<h2></h2>, <h3></h3>, ...).
Djulia