I am using wordpress as a CMS and trying to allow user fields to be input to populate the info windows in a Google Map script. I am using this to select the id and pull in
This was the only thing solution that worked for me:
$dataWithoutCarrierReturn = preg_replace('/[\x0D]/', '', $inData);