mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-31 19:30:21 +02:00
Implement HTMLT tests, and migrate HTMLPurifierTest to this format.
HTMLT tests are a compact and easy-to-use way of making assertPurification type tests. They take the format of: --INI-- Ns.Directive = "directive value" --HTML-- Input HTML --EXPECT-- Expected HTML Expect more features and migration to be coming soon. Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
This commit is contained in:
6
tests/HTMLPurifier/HTMLT/strict-blockquote.htmlt
Normal file
6
tests/HTMLPurifier/HTMLT/strict-blockquote.htmlt
Normal file
@@ -0,0 +1,6 @@
|
||||
--INI--
|
||||
HTML.Strict = true
|
||||
--HTML--
|
||||
<blockquote>Illegal contents</blockquote>
|
||||
--EXPECT--
|
||||
<blockquote><p>Illegal contents</p></blockquote>
|
Reference in New Issue
Block a user