Remove comment HTML entities when converting GPX

This commit is contained in:
2021-11-30 19:29:49 +01:00
parent 1f5f2e27c0
commit 0b0261f20d
3 changed files with 4 additions and 4 deletions

View File

@@ -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)));