Convert new lines to HTML breaks.
This one’s nice and easy. The name was respectfully borrowed from PHP. 1 2 3 4 5 6 7 class String def nl2br gsub("\n", ‘<br />’) end end
This one’s nice and easy. The name was respectfully borrowed from PHP. 1 2 3 4 5 6 7 class String def nl2br gsub("\n", ‘<br />’) end end
I don't believe in "intellectual property". If you do, consider rabbitcreative.com as licensed under a Creative Commons Attribution 3.0 License.