Skip to content
Advertisement

Tag: line-breaks

How to keep linebreaks in html textarea POST data

I am trying to have lyrics to a song submitted into a text area. So, this needs to keep the line-breaks when I output. I am aware of the fact that browsers standard should use rn as the line-break, and PHP’s nl2br() function can convert the rn into <br>tags. I am also aware of the fact that textarea inputs require

Advertisement