Remove comment HTML entities when converting GPX
This commit is contained in:
@@ -264,6 +264,7 @@ class GeoJson extends Geo {
|
||||
}
|
||||
|
||||
private function parseOptions($sComment){
|
||||
$sComment = strip_tags(html_entity_decode($sComment));
|
||||
$asOptions = array(self::OPT_SIMPLE=>'');
|
||||
foreach(explode("\n", $sComment) as $sLine) {
|
||||
$asOptions[mb_strtolower(trim(mb_strstr($sLine, ':', true)))] = mb_strtolower(trim(mb_substr(mb_strstr($sLine, ':'), 1)));
|
||||
|
||||
@@ -27,7 +27,6 @@ class Project extends PhpObject {
|
||||
private $sName;
|
||||
private $sCodeName;
|
||||
private $asActive;
|
||||
private $asGeo;
|
||||
|
||||
public function __construct(Db &$oDb, $iProjectId=0) {
|
||||
parent::__construct(__CLASS__, Settings::DEBUG);
|
||||
|
||||
Reference in New Issue
Block a user