I had a KML file that i've changed into an XML and i can output any information from it with no problem. But my "description" tag has a CDATA block inside which has HTML code. Im using PHP to echo something if "description" tag contains "some HTML code". But in my XML file, the "td" tags (which are in a CDATA block as i said) are separated by two line breaks and because of that my if statement doesnt work.
My PHP:
$a=array();
foreach($xml->Document->Folder->Placemark as $casa) {
if(strpos($casa->description,'<td>Mob_Reduzi</td>**WHAT TO PUT HERE**<td>0</td>') !== false){
echo "BLA BLA BLA"
}
}
I've tried that PHP code with line break unicodes between those tags but nothing worked. Eliminate the line break is not an option right now because there are thousands of those lines. Thanks in advance.