@schukai/monster 3.101.0 → 3.101.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -196,6 +196,17 @@ function transform(value) {
196
196
  validateString(value);
197
197
  return value.toLowerCase();
198
198
 
199
+ case "escape-html":
200
+ case "escapehtml":
201
+ validateString(value);
202
+
203
+ return value.replace(/&/g, "&").
204
+ replace(/</g, "&lt;").
205
+ replace(/>/g, "&gt;").
206
+ replace(/"/g, "&quot;").
207
+ replace(/'/g, '&#39;');
208
+
209
+
199
210
  case "contains":
200
211
  if (isString(value)) {
201
212
  return value.includes(args[0]);