Answers for "save line breaks in textarea"

CSS
0

keep line breaks in textarea

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

save line breaks in textarea

<p style="white-space:pre-warp">multi-line text</p>
Posted by: Guest on September-28-2021
0

mat-form-field textarea save with new line

white-space: pre-wrap
Posted by: Guest on July-19-2020

Browse Popular Code Answers by Language