Comparing version 11.4.0 to 12.0.0
@@ -123,3 +123,3 @@ 'use strict'; | ||
const normalized = internals.stringify(value, wrapArrays); | ||
return (isSecure ? Hoek.escapeHtml(normalized) : normalized); | ||
return (isSecure && this.options.escapeHtml ? Hoek.escapeHtml(normalized) : normalized); | ||
}); | ||
@@ -126,0 +126,0 @@ } |
@@ -23,3 +23,4 @@ 'use strict'; | ||
strip: Joi.boolean(), | ||
noDefaults: Joi.boolean() | ||
noDefaults: Joi.boolean(), | ||
escapeHtml: Joi.boolean() | ||
}).strict(); |
@@ -28,3 +28,4 @@ 'use strict'; | ||
strip: false, | ||
noDefaults: false | ||
noDefaults: false, | ||
escapeHtml: false | ||
@@ -31,0 +32,0 @@ // context: null |
{ | ||
"name": "joi", | ||
"description": "Object schema validation", | ||
"version": "11.4.0", | ||
"version": "12.0.0", | ||
"homepage": "https://github.com/hapijs/joi", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/hapijs/joi", |
@@ -29,3 +29,3 @@ ![joi Logo](https://raw.github.com/hapijs/joi/master/images/joi.png) | ||
# API | ||
See the detailed [API Reference](https://github.com/hapijs/joi/blob/v11.4.0/API.md). | ||
See the detailed [API Reference](https://github.com/hapijs/joi/blob/v12.0.0/API.md). | ||
@@ -32,0 +32,0 @@ # Example |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
173787
4085