aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/includes
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-03-06 21:08:46 +0100
committerMario <mario@mariovavti.com>2024-03-06 21:08:46 +0100
commit37b22fe542eb8f336c167c982bf458852e8b32b9 (patch)
tree8eaf0acde67fe561e15b12b901149037cac3bc20 /tests/unit/includes
parentd40d62ac4f9313b928b0521b09b0c380579ac727 (diff)
downloadvolse-hubzilla-37b22fe542eb8f336c167c982bf458852e8b32b9.tar.gz
volse-hubzilla-37b22fe542eb8f336c167c982bf458852e8b32b9.tar.bz2
volse-hubzilla-37b22fe542eb8f336c167c982bf458852e8b32b9.zip
fix unterminated entity reference error when dealing with domxpath and add a test
Diffstat (limited to 'tests/unit/includes')
-rw-r--r--tests/unit/includes/BBCodeTest.php4
1 files changed, 4 insertions, 0 deletions
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' => [
'<p><span class="h-card" translate="no"><a href="https://example.org/@profile" class="u-url mention">@<span>profile</span></a></span> some content</p>',
'[url=https://example.org/@profile]@profile[/url] some content'
+ ],
+ 'nested tags with ampersand and new line' => [
+ "<b>\n<i>foo & bar</i></b>",
+ '[b] [i]foo &amp; bar[/i][/b]'
]
];
}