text from database was not diplayed properly in view file. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: text from database was not diplayed properly in view file. (/showthread.php?tid=55673) |
text from database was not diplayed properly in view file. - El Forum - 11-05-2012 [eluser]Mari[/eluser] Hi, friends I stored some text data in my db by submit a form. In my form I entered the text in textarea like, <b>1.sample text sample text. 2.sample text sample text. 3.sample text sample text. 4.sample text sample text. 5.sample text sample text.</b> But when I get that text and displayed in view file it shows like, <b>1.sample text sample text.2.sample text sample text.3.sample text sample text. 4.sample text sample text.5.sample text sample text.</b> how I can display the text in right format. text from database was not diplayed properly in view file. - El Forum - 11-06-2012 [eluser]Aken[/eluser] http://us2.php.net/manual/en/function.nl2br.php text from database was not diplayed properly in view file. - El Forum - 11-06-2012 [eluser]Mari[/eluser] Thanks Aken. |