You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Escape HTML entities in TextConverter::convert (#184)
* Escape HTML entities in TextConverter::convert
This preserves actual HTML entities present in the text node
* Update expected values to include escaped HTML entities in HtmlConverterTest
@@ -298,14 +298,14 @@ public function test_sanitization()
298
298
$html = '<pre><code><script type = "text/javascript"> function startTimer() { var tim = window.setTimeout("hideMessage()", 5000) } </head> <body></code></pre>';
299
299
$markdown = '```' . "\n" . '<script type = "text/javascript"> function startTimer() { var tim = window.setTimeout("hideMessage()", 5000) } </head> <body>' . "\n```";
300
300
$this->html_gives_markdown($html, $markdown);
301
-
$this->html_gives_markdown('<p>> > Look at me! < <</p>', '\> > Look at me! < <');
302
-
$this->html_gives_markdown('<p>> > <b>Look</b> at me! < <<br />> Just look at me!</p>', "\\> > **Look** at me! < <\n\\> Just look at me!");
301
+
$this->html_gives_markdown('<p>> > Look at me! < <</p>', '> > Look at me! < <');
302
+
$this->html_gives_markdown('<p>> > <b>Look</b> at me! < <<br />> Just look at me!</p>', "> > **Look** at me! < <\n> Just look at me!");
$this->html_gives_markdown("<p>123456789) Foo and 1234567890) Bar!</p>\n<p>1. Platz in 'Das große Backen'</p>", "123456789\\) Foo and 1234567890) Bar!\n\n1\\. Platz in 'Das große Backen'");
307
307
$this->html_gives_markdown("<p>\n+ Siri works well for TV and movies<br>\n- No 4K support\n</p>", "\+ Siri works well for TV and movies \n\- No 4K support");
308
-
$this->html_gives_markdown('<p>You forgot the <!--more--> tag!</p>', 'You forgot the \<!--more--> tag!');
308
+
$this->html_gives_markdown('<p>You forgot the <!--more--> tag!</p>', 'You forgot the <!--more--> tag!');
0 commit comments