Remove some obscure HTML tags from sanitization

This commit is contained in:
Robin Ward
2014-06-24 11:03:45 -04:00
parent f0932a7de8
commit a7ad7f6a45
2 changed files with 2 additions and 7 deletions

View File

@ -365,6 +365,8 @@ test("sanitize", function() {
equal(sanitize("<textarea>hullo</textarea>"), "hullo");
equal(sanitize("<button>press me!</button>"), "press me!");
equal(sanitize("<canvas>draw me!</canvas>"), "draw me!");
equal(sanitize("<progress>hello"), "hello");
equal(sanitize("<mark>highlight</mark>"), "highlight");
cooked("[the answer](javascript:alert(42))", "<p><a>the answer</a></p>", "it prevents XSS");