diff options
author | Andrew Dolgov <[email protected]> | 2023-12-18 14:51:58 +0000 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-12-18 14:51:58 +0000 |
commit | d4ae6c67db8c966ab4998fda6df14072b103106b (patch) | |
tree | c7353b1bad7040c31c97645eed868d60375d2c15 | |
parent | 67012f9dac7de22615b72be93fa360f53fefe3ec (diff) | |
parent | f1a9ac9b159127e8eb7c301e9a646eabb188e1af (diff) |
Merge branch 'dont-sanitize-figure-tag' into 'master'
sanitizer: keep <figure> intact
See merge request tt-rss/tt-rss!15
-rw-r--r-- | tests/integration/SanitizerTest.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/integration/SanitizerTest.php b/tests/integration/SanitizerTest.php index 1981079f0..421d046af 100644 --- a/tests/integration/SanitizerTest.php +++ b/tests/integration/SanitizerTest.php @@ -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>') + ); + } } |