Hello,
first of all sorry for my bad english.
I save FCK textarea content in a mySql db and it's ok, but... it creates line breaks before <p> tags.
When I want to display this db content on a web page with wz_tooltip it does not work because the html content generated by FCK is not written on a unique line.
For example, it's like this :
<p>First paragraph</p>
<p>Second paragraph</p>
And I'd like to have :
<p>First paragraph</p><p>Second paragraph</p>
Do you have any idea ?
Thank you.
first of all sorry for my bad english.
I save FCK textarea content in a mySql db and it's ok, but... it creates line breaks before <p> tags.
When I want to display this db content on a web page with wz_tooltip it does not work because the html content generated by FCK is not written on a unique line.
For example, it's like this :
<p>First paragraph</p>
<p>Second paragraph</p>
And I'd like to have :
<p>First paragraph</p><p>Second paragraph</p>
Do you have any idea ?
Thank you.
Re: FCK and MySql : line breaks before <p> elements
Sanatize the string like this before to record it in the db.
PHP :