From: Dawa Ometto <dawa.ometto@phil.uu.nl>
Date: Sun, 30 Sep 2018 12:38:48 +0200
Subject: [5/6] Fix tests failures on 2.x due to changes in nokogiri
Origin: https://github.com/rgrove/sanitize/commit/143e2d14069d9349c80dbe209e952a9079bf1280
Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2018-3740
Bug: https://github.com/rgrove/sanitize/issues/176
Bug-Debian: https://bugs.debian.org/893610

---
 test/test_sanitize.rb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/test_sanitize.rb b/test/test_sanitize.rb
index 02b25206ebfc..d7a66293e89c 100644
--- a/test/test_sanitize.rb
+++ b/test/test_sanitize.rb
@@ -56,10 +56,10 @@ strings = {
 
   :malicious => {
     :html       => '<b>Lo<!-- comment -->rem</b> <a href="javascript:pants" title="foo">ipsum</a> <a href="http://foo.com/"><strong>dolor</strong></a> sit<br/>amet <<foo>script>alert("hello world");</script>',
-    :default    => 'Lorem ipsum dolor sit amet script&gt;alert("hello world");',
-    :restricted => '<b>Lorem</b> ipsum <strong>dolor</strong> sit amet script&gt;alert("hello world");',
-    :basic      => '<b>Lorem</b> <a rel="nofollow">ipsum</a> <a href="http://foo.com/" rel="nofollow"><strong>dolor</strong></a> sit<br>amet script&gt;alert("hello world");',
-    :relaxed    => '<b>Lorem</b> <a title="foo">ipsum</a> <a href="http://foo.com/"><strong>dolor</strong></a> sit<br>amet script&gt;alert("hello world");'
+    :default    => 'Lorem ipsum dolor sit amet &lt;script&gt;alert("hello world");',
+    :restricted => '<b>Lorem</b> ipsum <strong>dolor</strong> sit amet &lt;script&gt;alert("hello world");',
+    :basic      => '<b>Lorem</b> <a rel="nofollow">ipsum</a> <a href="http://foo.com/" rel="nofollow"><strong>dolor</strong></a> sit<br>amet &lt;script&gt;alert("hello world");',
+    :relaxed    => '<b>Lorem</b> <a title="foo">ipsum</a> <a href="http://foo.com/"><strong>dolor</strong></a> sit<br>amet &lt;script&gt;alert("hello world");'
   },
 
   :raw_comment => {
-- 
2.20.1

