I know there have been a ton of posts on this but I haven't gotten the right recipe for getting rid of the double-accented-right-quote-with-umlots-and-ordination. It throws a unterminated value error when IE reads the xml.
What is a simple way to convert any string for my XML? Thanks for any advise!
$dom = new DOMDocument('1.0', 'ISO-8859-1');
$parnode = $dom->appendChild( $dom->createElement('markers') );
$spots = $this->get_spots();
foreach($spots as $spot)
{
$node = $dom->createElement('marker');
$newnode = $parnode->appendChild($node);
foreach($spot as $key => $val) {
$newnode->setAttribute($key, htmlentities(mb_convert_encoding(stripslashes($val), 'ISO-8859-1')));