Commit Graph

21 Commits

Author SHA1 Message Date
Tom Anthony
51de741f7b Update handling of quoteStart to prevent sanitization bypass using non-space whitespace. 2021-01-25 21:17:00 +01:00
Tom Anthony
379d181273 Make coding style project consistent. 2020-07-24 10:41:06 +01:00
Tom Anthony
f454fd76e6 Update handling of quoteStart to allow for whitespace after =. Add a new test case for this failure scenario. 2020-07-22 23:40:13 +01:00
Zongmin Lei
9b85b8f2d6 reformat by prettier 2017-12-21 14:22:34 +08:00
Zongmin Lei
32a4bece31 translate all comments to English 2017-12-21 14:19:10 +08:00
Zongmin Lei
857fa9de67 fix cssFilter, allow pass css=false to disable cssFilter 2016-11-06 11:06:02 +08:00
Zongmin Lei
8df84a1995 单元测试使用debug显示输出 2015-12-01 22:10:48 +08:00
Zongmin Lei
7fd196296c 修正单元测试代码 <script> --> <scri + pt> 保证在浏览器上测试通过 2015-05-06 11:36:56 +08:00
Zongmin Lei
d512bd7643 修正:当启用stripIgnoreTagBody时,如果以要过滤的标签开头,会导致前面部分没正确删除[removed]标记 2014-03-03 18:21:39 +08:00
Zongmin Lei
519f0ed944 href和src属性,如果被过滤则返回空值 2014-02-18 14:35:50 +08:00
Zongmin Lei
c63f87b61f test: stripIgnoreTagBody 2014-02-13 18:18:43 +08:00
Zongmin Lei
5c46660e43 测试文件 2014-02-13 16:38:32 +08:00
Zongmin Lei
98dc24ab5a originPosition改名为sourcePosition 2014-02-13 16:33:35 +08:00
Zongmin Lei
054aab29a2 test: stripIgnoreTag 2014-02-13 16:27:49 +08:00
Zongmin Lei
f64124137e test: safeAttrValue 2014-02-13 16:18:10 +08:00
Zongmin Lei
53434487c5 test: escapeHtml 2014-02-13 16:13:26 +08:00
Zongmin Lei
f6dcdd7e30 test: onIgnoreTagAttr 2014-02-13 15:59:37 +08:00
Zongmin Lei
7fc9d3df3a test: onTagAttr 2014-02-13 15:55:36 +08:00
Zongmin Lei
5632ce9bde test: onIgnoreTag 2014-02-13 15:31:19 +08:00
Zongmin Lei
09e8a51ecf test: onTag 2014-02-13 15:27:58 +08:00
Zongmin Lei
93d4da6cfa 调整测试代码 test_custom_method 2014-02-13 15:10:09 +08:00