If
$text = ' MEANINGFUL THINGS GO HERE ';
How can I get
$cleanText = 'MEANINGFUL THINGS GO HERE';
I know the following will remove all spaces
$text=trim($text);
but how can you include the actual shielded space in the crop?
Meaningful Thingsmay contain tags [shortcodes], html, as well as escaped characters. I need them to be saved.
Any help would be greatly appreciated. Thank!
source
share