mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix #2197 preserve position of data-file-srl attribute and trailing slash in tags
This commit is contained in:
parent
221602ceb8
commit
321d0ea88c
2 changed files with 8 additions and 3 deletions
|
|
@ -270,8 +270,8 @@ class HTMLFilterTest extends \Codeception\TestCase\Test
|
|||
$target = '<div style="width:100%;" data-foo="foobar" data-bar="bazz">Hello World</div>';
|
||||
$this->assertEquals($target, Rhymix\Framework\Filters\HTMLFilter::clean($source));
|
||||
|
||||
$source = '<a href="#" data-not-properly-encoded="Rhymix\'s Future">Hello World</a>';
|
||||
$target = '<a href="#" data-not-properly-encoded="Rhymix's Future">Hello World</a>';
|
||||
$source = '<img src="test.jpg" data-file-srl="123" alt="TEST" data-not-properly-encoded="Rhymix\'s Future" width="174" />';
|
||||
$target = '<img src="test.jpg" data-file-srl="123" alt="TEST" width="174" data-not-properly-encoded="Rhymix's Future" />';
|
||||
$this->assertEquals($target, Rhymix\Framework\Filters\HTMLFilter::clean($source));
|
||||
|
||||
$source = '<article nonsense="#" data-json="{"foo":["bar",777]}"><p>Hello World<p></article>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue