Replace newlines with HTML line breaks (<br/>)

string:newline_to_br(STRING $string) : STRING

string:newline_to_br("hi\n\nfriend")
#=> "hi<br />\n<br />\nfriend"

Copyright ©2013-2022 SunSed®. All rights reserved.