mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-06 14:16:32 +02:00
Fix autoparagraph bug with non-inline elements.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
@@ -497,6 +497,13 @@ Bar</div>",
|
||||
);
|
||||
}
|
||||
|
||||
function testAutoClose() {
|
||||
$this->assertResult(
|
||||
'<p></p>
|
||||
<hr />'
|
||||
);
|
||||
}
|
||||
|
||||
function testErrorNeeded() {
|
||||
$this->config->set('HTML.Allowed', 'b');
|
||||
$this->expectError('Cannot enable AutoParagraph injector because p is not allowed');
|
||||
|
@@ -123,8 +123,6 @@ asdf<b></b></p>
|
||||
|
||||
<p>asdf</p>
|
||||
|
||||
|
||||
|
||||
"
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user