UNPKG

545 BPlain TextView Raw
1/**
2 * Default Html Sanitizer to prevent script injection.
3 */
4export class HTMLSanitizer {
5 /**
6 * Sanitizes the provided input.
7 * @param input The input to be sanitized.
8 */
9 // eslint-disable-next-line @typescript-eslint/no-unused-vars
10 sanitize(input): any {
11 throw new Error(`To protect the application against a wide variety of sophisticated XSS attacks.
12Please see https://aurelia.io/docs/binding/basics#element-content for instructions on how to use a secure solution like DOMPurify or sanitize-html.`);
13 }
14}