@cv-tec/validations 0.4.8 → 0.4.9
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.
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.IsSafeHtml = IsSafeHtml;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
14
|
const sanitize_html_1 = __importDefault(require("sanitize-html"));
|
15
|
-
const allowedTags = ['p', 'b', 'br', 'em', 'ul', 'li'];
|
15
|
+
const allowedTags = ['p', 'b', 'br', 'em', 'ul', 'ol', 'li', 'strong'];
|
16
16
|
let IsSafeHtmlConstraint = class IsSafeHtmlConstraint {
|
17
17
|
validate(html) {
|
18
18
|
const clean = (0, sanitize_html_1.default)(html, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"is-safe-html.js","sourceRoot":"","sources":["../../../src/custom-decorators/class-validators/is-safe-html.ts"],"names":[],"mappings":";;;;;;;;;;;AAyBA,gCAUC;AAnCD,qDAKwB;AACxB,kEAAwC;AACxC,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;
|
1
|
+
{"version":3,"file":"is-safe-html.js","sourceRoot":"","sources":["../../../src/custom-decorators/class-validators/is-safe-html.ts"],"names":[],"mappings":";;;;;;;;;;;AAyBA,gCAUC;AAnCD,qDAKwB;AACxB,kEAAwC;AACxC,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAA;AAEtE,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IACxB,QAAQ,CAAC,IAAY;QACnB,MAAM,KAAK,GAAG,IAAA,uBAAY,EAAC,IAAI,EAAE;YAC/B,WAAW;YACX,iBAAiB,EAAE,EAAE;SACtB,CAAC,CAAA;QAEF,mEAAmE;QACnE,OAAO,IAAI,KAAK,KAAK,CAAA;IACvB,CAAC;IAED,cAAc;QACZ,OAAO,aAAa,CAAA;IACtB,CAAC;CACF,CAAA;AAdK,oBAAoB;IADzB,IAAA,qCAAmB,EAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;GAChC,oBAAoB,CAczB;AAED,SAAgB,UAAU,CAAC,iBAAqC;IAC9D,OAAO,UAAU,MAAc,EAAE,YAAoB;QACnD,IAAA,mCAAiB,EAAC;YAChB,MAAM,EAAE,MAAM,CAAC,WAAW;YAC1B,YAAY,EAAE,YAAY;YAC1B,OAAO,EAAE,iBAAiB;YAC1B,WAAW,EAAE,EAAE;YACf,SAAS,EAAE,oBAAoB;SAChC,CAAC,CAAA;IACJ,CAAC,CAAA;AACH,CAAC"}
|