Online New line to <BR /> converter (nl2br)
If you encounter any errors with this tool attaching the file that causes problems.
You can create a handy link matching the current conversion operation (or the reverse equivalent if available).
Clicking the below buttons will generate the version that siutes you most and copy it to the clipboard.
This tool inserts HTML line breaks (<BR />) before all newlines in the input. Plese note that this tool is xhtml compilant.
Implementations - Download source code
Please note that I did not write any of the bellow code. I have only gathered and mirrored all the implementations in one place. All license and legal notes have been untouched .
If you know of any other implementations (In any programming language not listed below let me know)
- nl2br Perl Implementation - Download Source
- nl2br Action Script (Flash) Implementation - Download Source
- nl2br Ruby on Rails Implementation - Download Source