Jump to content

[SOLVED] URGENT: nl2br doesnt work!!!


FilipKrstic

Recommended Posts

Hi.. This is what's bodering me.. I have some data in mysql database, and when i'm reading from database and, while printing, use nl2br function it works fine.. And I created inline ajax editor to edit that data. When i click "Edit" and 'throw' data through xmlhttp req, my php script get data, update database, and echo some html so the js script could update html..

 

And there is my problem.. My php script echo nl2br($text); but it seems like nl2br doesnt have any effect to $text. It outputs with '\n' inside text..

 

How to fix this?

Link to comment
https://forums.phpfreaks.com/topic/141272-solved-urgent-nl2br-doesnt-work/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.