Merge branch 'dont-sanitize-figure-tag' into 'master'

sanitizer: keep <figure> intact

See merge request tt-rss/tt-rss!15
This commit is contained in:
Andrew Dolgov 2023-12-18 14:51:58 +00:00
commit d4ae6c67db
1 changed files with 7 additions and 0 deletions

View File

@ -9,5 +9,12 @@ final class SanitizerTest extends TestCase {
Sanitizer::sanitize('<p>中文</p>')
);
}
public function test_sanitize_keep_figure(): void {
$this->assertEquals(
'<figure>Content</figure>',
Sanitizer::sanitize('<figure>Content</figure>')
);
}
}