From 504a9715ee60f0bc1bf67d6e81640e9bb6f29dfc Mon Sep 17 00:00:00 2001 From: Andrew Hood Date: Mon, 27 Feb 2017 10:51:26 -0800 Subject: Remove `encode_special_chars` option from `strip_tags` --- actionview/test/template/sanitize_helper_test.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actionview/test') diff --git a/actionview/test/template/sanitize_helper_test.rb b/actionview/test/template/sanitize_helper_test.rb index c8963fee9c..11ed55456f 100644 --- a/actionview/test/template/sanitize_helper_test.rb +++ b/actionview/test/template/sanitize_helper_test.rb @@ -10,6 +10,7 @@ class SanitizeHelperTest < ActionView::TestCase assert_equal "on my mind\nall day long", strip_links("on my mind\nall day long") assert_equal "Magic", strip_links("Magic") assert_equal "My mind\nall day long", strip_links("My mind\nall day long") + assert_equal "<malformed & link", strip_links('<malformed & link') end def test_sanitize_form @@ -26,6 +27,7 @@ class SanitizeHelperTest < ActionView::TestCase assert_equal("Dont touch me", strip_tags("Dont touch me")) assert_equal("This is a test.", strip_tags("

This is a test.

")) assert_equal "This has a here.", strip_tags("This has a here.") + assert_equal("Jekyll & Hyde", strip_tags("Jekyll & Hyde")) assert_equal "", strip_tags("