From 663bf35d17cf35d0385861902362333a789cc642 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Fri, 10 Feb 2017 20:37:04 +0900 Subject: [PATCH] typos --- lib/rails/html/sanitizer.rb | 2 +- test/sanitizer_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rails/html/sanitizer.rb b/lib/rails/html/sanitizer.rb index 68ae6d2..7fc6994 100644 --- a/lib/rails/html/sanitizer.rb +++ b/lib/rails/html/sanitizer.rb @@ -61,7 +61,7 @@ def sanitize(html, options = {}) # Sanitizes html and css from an extensive white list (see link further down). # # === Whitespace - # We can't make any guarentees about whitespace being kept or stripped. + # We can't make any guarantees about whitespace being kept or stripped. # Loofah uses Nokogiri, which wraps either a C or Java parser for the # respective Ruby implementation. # Those two parsers determine how whitespace is ultimately handled. diff --git a/test/sanitizer_test.rb b/test/sanitizer_test.rb index f72b702..d266cd8 100644 --- a/test/sanitizer_test.rb +++ b/test/sanitizer_test.rb @@ -33,7 +33,7 @@ def test_remove_xpaths_removes_an_xpath assert_equal %(

hello

), xpath_sanitize(html, xpaths: %w(.//script)) end - def test_remove_xpaths_removes_all_occurences_of_xpath + def test_remove_xpaths_removes_all_occurrences_of_xpath html = %(

hello

) assert_equal %(

hello

), xpath_sanitize(html, xpaths: %w(.//script)) end