Posted By

karthikeyan on 08/21/13


Tagged


Versions (?)

Text with line break


 / Published in: PHP
 

While adding text with line break, In view page we have to show like what we are enter with line break.

  1. db field datatype should be text/minimumtext,
  2.  
  3. nl2br(htmlentities($filedName));//while displaying

Report this snippet  

You need to login to post a comment.