FCKEditor/PHP - Problem with Line Breaks echoed into the value property. NEed to get rid of them.
Posted on 2005-05-13
I am echoing into the value property of FCKeditor. Oddly, these line breaks originated from the fckeditor page where the text was entered and loaded into the database.
If you look at the code, you see this:
oFCKeditor.Value = '<? echo addslashes($body) ; ?>' ;
If you look at the output, you see this:
oFCKeditor.Value = '<p>He said to the woman, "Who is your favorite singer?" </p>
<p>She responded, after looking at her mother\'s watch, "Shirley Manson\'s voice is spectacular."<br/>
Those line breaks bust the fckeditor. How can I remove them from the echo so this doesn't happen?