Skip to content

Commit

Permalink
[TASK] Disable test for unicode non breaking spaces substitution (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohader authored Sep 21, 2023
1 parent a35f220 commit f2238de
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/ScenarioTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -561,10 +561,12 @@ public static function attributesAreEncodedDataProvider(): \Generator
// "<a title='Hello \x80, Good morning'></a>",
// "<a title='Hello \xEF\xBF\xBD, Good morning'></a>",
//];
yield 'escape non breaking space' => [
"<a title='Hello\xc2\xa0World'></a>",
'<a title="Hello&nbsp;World"></a>',
];
// Disabled replacement of unicode non breaking spaces
// see https://github.com/TYPO3/html-sanitizer/commit/a35f220b2336e3f040f91d3de23d19964833643f
//yield 'escape non breaking space' => [
// "<a title='Hello\xc2\xa0World'></a>",
// '<a title="Hello&nbsp;World"></a>',
//];
yield 'encodes json values' => [
"<div data-value='{\"Hello\":[{\"w\":\"o\",\"r\":\"ld\"}]}'></a>",
'<div data-value="{&quot;Hello&quot;:[{&quot;w&quot;:&quot;o&quot;,&quot;r&quot;:&quot;ld&quot;}]}"></div>'
Expand Down

0 comments on commit f2238de

Please sign in to comment.