Remove comment HTML entities when converting GPX
This commit is contained in:
1 parent
1f5f2e27c0
commit
0b0261f20d
3 files changed
+4
-4
No files matched your search
@@ -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)));
|
||||
|
||||
Reference in new issue
Block a user