Forum Moderators: coopster
I am pulling some text from a MySQL DB field, and displaying in an RSS Feed. Single paragraph content works fine, but multi paragraph variables are causing the error "Whitespace is not allowed at this location" in the RSS file. How do I remove the whitespace from the string?
Example:
$var = "one two
three";
I have tried regular expressions and str_replace. No luck so far.
Thanks in advance.