I’m new and just learning php and I need help if possible.
We have a form that contains the following when submitted
[php]$description = str_replace("’","’",$textfield)[/php]
what I’m also wanting to add, if possible is if people start the form with:
[ul][li]a blank line[/li]
[li]hi (followed by “return”)[/li]
[li]hi, (followed by “return”)[/li]
[li]hello (followed by “return”)[/li]
[li]hello, (followed by “return”)[/li]
[li]morning (followed by “return”)[/li]
[li]morning, (followed by “return”)[/li]
[li]urgent (followed by return)[/li][/ul]
I’m wanting those removing so it starts with the next line. We work on a helpdesk and we scan the list and only see the the first line.
We need line breaks in the rest of the text, it would just be if they put those words at the start or no words at all that we want the line break removing.
Any help would be greatly appreciated.