From 37b22fe542eb8f336c167c982bf458852e8b32b9 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 6 Mar 2024 21:08:46 +0100 Subject: fix unterminated entity reference error when dealing with domxpath and add a test --- tests/unit/includes/BBCodeTest.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/unit/includes/BBCodeTest.php b/tests/unit/includes/BBCodeTest.php index f29eeafd4..0da50f77a 100644 --- a/tests/unit/includes/BBCodeTest.php +++ b/tests/unit/includes/BBCodeTest.php @@ -194,6 +194,10 @@ class BBCodeTest extends UnitTestCase { 'paragraph with a mention and some text' => [ '

@profile some content

', '[url=https://example.org/@profile]@profile[/url] some content' + ], + 'nested tags with ampersand and new line' => [ + "\nfoo & bar", + '[b] [i]foo & bar[/i][/b]' ] ]; } -- cgit v1.2.3