Posted by Dawsons on 02/14/06 11:24
Do a str_replace on the </p> so that it replaces with \n or double \n...
then just hve the document strip <p> clean...
as the other guy said, you need to make sure theres no return break
otherwise javascript gets arsey!
"GooderThanYou" <gooderthanyou@gmail.com> wrote in message
news:1139430359.412120.310780@z14g2000cwz.googlegroups.com...
>I have "<P>moo</P><P>moo</P>" stored in mysql...
>
> I pull that and get rid of the <P> and </P> characters perfectly fine
>
> Then I output the string in a text box and it says "moomoo"
>
> Now when I write it to a IFrame... it will not let me edit the iframe
> and nothing shows up either...
>
> If I write $test = "moomoo"; it will work, but it won't let me get rid
> of the html, nor does it like "\nmoo" which i'm going to need to use.
>
> There are no blank spaces either..... I don't know what the heck it is
> doing
>
[Back to original message]
|