From 4279d7d7f541da61e218985d6152743788901a2c Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 29 Jan 2021 14:30:38 -0500 Subject: [PATCH] Escape api params in APIv4 Explorer --- ang/api4Explorer/Explorer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ang/api4Explorer/Explorer.js b/ang/api4Explorer/Explorer.js index 7def6e386f..a0d03dd2f1 100644 --- a/ang/api4Explorer/Explorer.js +++ b/ang/api4Explorer/Explorer.js @@ -702,7 +702,7 @@ } _.each($scope.code, function(vals) { _.each(vals, function(style) { - style.code = code[style.name] ? prettyPrintOne(code[style.name]) : ''; + style.code = code[style.name] ? prettyPrintOne(_.escape(code[style.name])) : ''; }); }); } -- 2.25.1