all groups > macromedia flash flash remoting > august 2006 >
You're in the

macromedia flash flash remoting

group:

line break issue


line break issue dnk NO[at]SPAM canada.com
8/15/2006 2:13:09 AM
macromedia flash flash remoting:
Flash 8
amfphp 1.2
mysql4

Hi there- I have a class that returns results from a DB with a few html tags
(well a <br />). Now for some reason when in the database it has:

some text<br />
more text<br />
even more

In flash in an html text field, my results show:

some text

more text

even more

If I hard code the same result into a var and asign it, I get the desired:

some text
more text
even more

I even modified the DB to have:

some text<br />more text<br />even more

And I still get the same results.

Am I missing something?
Re: line break issue dnk NO[at]SPAM canada.com
8/15/2006 2:45:09 AM
ok - disregard - I figured it out... the issue is that PHP's nl2br (newline to
br) actully ADDS a br before a newline - it does not replace them. So in html
this was fine (as it does not render the newline), but in flash it was messing
it up. Just wrote a custom function, and all is cool now.
AddThis Social Bookmark Button