@@ -489,31 +489,31 @@ def test_uri_escaping_of_href_attr_in_a_tag_in_white_list_sanitizer
489489
490490 text = white_list_sanitize ( html )
491491
492- assert_equal %{<a href="examp< !--%22%20unsafeattr=foo()>--> le.com">test</a>} , text
492+ assert_equal %{<a href=\ " examp< !--%22%20unsafeattr=foo()>--> le.com\ " >test</a>} , text
493493 end
494494
495495 def test_uri_escaping_of_src_attr_in_a_tag_in_white_list_sanitizer
496496 html = %{<a src='examp<!--" unsafeattr=foo()>-->le.com'>test</a>}
497497
498498 text = white_list_sanitize ( html )
499499
500- assert_equal %{<a src="examp< !--%22%20unsafeattr=foo()>--> le.com">test</a>} , text
500+ assert_equal %{<a src=\ " examp< !--%22%20unsafeattr=foo()>--> le.com\ " >test</a>} , text
501501 end
502502
503503 def test_uri_escaping_of_name_attr_in_a_tag_in_white_list_sanitizer
504504 html = %{<a name='examp<!--" unsafeattr=foo()>-->le.com'>test</a>}
505505
506506 text = white_list_sanitize ( html )
507507
508- assert_equal %{<a name="examp< !--%22%20unsafeattr=foo()>--> le.com">test</a>} , text
508+ assert_equal %{<a name=\ " examp< !--%22%20unsafeattr=foo()>--> le.com\ " >test</a>} , text
509509 end
510510
511511 def test_uri_escaping_of_name_action_in_a_tag_in_white_list_sanitizer
512512 html = %{<a action='examp<!--" unsafeattr=foo()>-->le.com'>test</a>}
513513
514514 text = white_list_sanitize ( html , attributes : [ 'action' ] )
515515
516- assert_equal %{<a action="examp< !--%22%20unsafeattr=foo()>--> le.com">test</a>} , text
516+ assert_equal %{<a action=\ " examp< !--%22%20unsafeattr=foo()>--> le.com\ " >test</a>} , text
517517 end
518518
519519protected
0 commit comments