File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def sanitize(html, options = {})
6161 # Sanitizes html and css from an extensive white list (see link further down).
6262 #
6363 # === Whitespace
64- # We can't make any guarentees about whitespace being kept or stripped.
64+ # We can't make any guarantees about whitespace being kept or stripped.
6565 # Loofah uses Nokogiri, which wraps either a C or Java parser for the
6666 # respective Ruby implementation.
6767 # Those two parsers determine how whitespace is ultimately handled.
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def test_remove_xpaths_removes_an_xpath
3333 assert_equal %(<h1>hello </h1>) , xpath_sanitize ( html , xpaths : %w( .//script ) )
3434 end
3535
36- def test_remove_xpaths_removes_all_occurences_of_xpath
36+ def test_remove_xpaths_removes_all_occurrences_of_xpath
3737 html = %(<section><header><script>code!</script></header><p>hello <script>code!</script></p></section>)
3838 assert_equal %(<section><header></header><p>hello </p></section>) , xpath_sanitize ( html , xpaths : %w( .//script ) )
3939 end
You can’t perform that action at this time.
0 commit comments