We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c8bdb4 commit a3acfe7Copy full SHA for a3acfe7
js/tracker.js
@@ -627,6 +627,14 @@ function habitat_data(jsondata, alternative) {
627
if (suffixes[k] !== undefined)
628
suffix = suffixes[k];
629
630
+ if (typeof v === "string") {
631
+ v = v.replace(/&/g, "&")
632
+ .replace(/</g, "<")
633
+ .replace(/>/g, ">")
634
+ .replace(/"/g, """)
635
+ .replace(/'/g, "'");
636
+ }
637
+
638
if(typeof alternative == 'boolean' && alternative) {
639
output += "<div><b>" + name + ": </b>" + v + suffix + "</div>";
640
} else {
0 commit comments