Skip to content

Commit

Permalink
Add tests for PR dokuwiki#4196
Browse files Browse the repository at this point in the history
Should not highlight HTML entities - "}" should'nt be parsed as '&dokuwiki#123;' and be rendered as such (see issue dokuwiki#4192).
  • Loading branch information
eduardomozart committed Feb 8, 2024
1 parent 2c39cc5 commit c8a48a8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions _test/tests/inc/html_hilight.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,12 @@ function testMBboth() {
html_hilight($html,'*куВи*')
);
}

function testHighlightHTMLEntity() {
$html = 'foo } bar';
$this->assertRegExp(
'/foo } bar/',
html_hilight($html,'*12*')
);
}
}

0 comments on commit c8a48a8

Please sign in to comment.