I have a textarea form field where users will put URL\'s separated by a new line. Would it be possible to wrap each line from this textarea field with < li > tags?
So
$textareaData = ''.str_replace("\n","\n",trim($textareaData,"\n")).'';
EDIT
Modified to get rid of all blank lines as well:
$textareaData = ''.str_replace(array("\r","\n\n","\n"),array('',"\n","\n"),trim($textareaData,"\n\r")).'';