I would like to be able to accept \n or \r\n and convert them to <br /> for use in the page. Although when a user submits a text area with new paragraphs, the strip_tags function seems to strip them right out. Anything I can do to keep these in the string?
Thanks!!!
You can use
nl2brto add theBRline break element to line break character sequences:Note that the
BRelements are just added:And to prevent
strip_tagsto removePandBRtags, specify them in the second parameter: