css break line textarea code example Example: keep line breaks in textarea // preserve line breaks ( \n -> <br> ) $_translated_text = nl2br($_original_text);