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
And what about something like this
echo preg_replace('/^(.+)(\s*)$/m', '$1', $text);
Output will be anything like this (not nice, but usefull):
dsadsa dsdsa dsadsad dsadsadsad vcxvxcvxvcxvcx fdsfdsfdsfs