mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 05:48:16 +08:00
remove trailing whitespaces ❤️
This commit is contained in:
@ -4,7 +4,7 @@ describe("sanitize", function(){
|
||||
|
||||
|
||||
it("strips all script tags", function(){
|
||||
var sanitized = sanitizeHtml("<div><script>alert('hi');</script></div>");
|
||||
var sanitized = sanitizeHtml("<div><script>alert('hi');</script></div>");
|
||||
|
||||
expect(sanitized)
|
||||
.toBe("<div></div>");
|
||||
|
Reference in New Issue
Block a user