Friday, November 27, 2009

How to add line breaks into a textarea

I use the textarea tag when I include code into my posts, but I wasn't able to figure out a way to add a line break in there as the <br/> tag would be displayed in a textarea instead of actually breaking the line. Well, as I could find out through the article Adding/Insert Line Breaks into a Textarea the key is to add this 'code' instead: &#13;

It's tiny but can be really annoying if you don't have the information. ;)

No comments:

Post a Comment

Dear legitimate commenters, please post your comments below. I'd be happy to receive your feedback; helps me a lot improving, or getting reassurance that I'm doing something really great here.

IMPORTANT! A note to commenters planning on advertising their business in comments: please be informed that I'm NOT going to post your comments but will ALWAYS mark them as SPAM.