Answers for "keep line breaks in textarea"

PHP
0

keep line breaks in textarea

// preserve line breaks ( \n -> <br> ) 
$_translated_text = nl2br($_original_text);
Posted by: Guest on July-24-2020

Browse Popular Code Answers by Language