summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-09-09 04:00:48 +0200
committerJonas Smedegaard <dr@jones.dk>2015-09-09 04:00:48 +0200
commit8bd96fa13873179cf7e1e5a461d2e1a3a670be48 (patch)
treefb9513d6e94fe651053bea7f2a9a1acf848c5e04
parentfeaec4c31fce93ba4af9b63246ad6ab18f166b2b (diff)
Fix html-escape data strings.
-rwxr-xr-xpoi2geojson2
1 files changed, 1 insertions, 1 deletions
diff --git a/poi2geojson b/poi2geojson
index 7bd808a..a9fac05 100755
--- a/poi2geojson
+++ b/poi2geojson
@@ -10,5 +10,5 @@ jq "$@" '[{type: "FeatureCollection", features: [.data.pois[] | {
elif .iconid == "pink-dot" then "diploma"
elif .iconid == "ltblue-dot" then "diploma-aspiring"
else null end
- ), title: .title, location: .address}
+ ), title: (.title | @html), location: (.address | @html)}
}]}]'