I used the jquery function serialize() for a form, made an ajax call, and use php to do the form processing.
I have a textarea in that form where users type uses spaces and line breaks. I can access the values with $_POST, but its doesnt interpret the line breaks into html <br/ > tags. Is there a function that converts line breaks the urlencoded string into <br/> tags and other html tags? Or is everything already decoded by the time i access it with $_POST that i cant do anything with it?
Use
nl2br($text);(new-line to break-rule)