Convert Plain-Text Writing Into HTML Paragraphs
Filed under: Tips & Tricks
Something that has always irked me is having to take the value of a textarea and convert the text into HTML paragraphs (especially when using a WYSIWYG is not an option). Here's a quick PHP snippet to take care of that, whether the user uses one or two line breaks for new paragraphs.
