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 = {})
61
61
# Sanitizes html and css from an extensive white list (see link further down).
62
62
#
63
63
# === 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.
65
65
# Loofah uses Nokogiri, which wraps either a C or Java parser for the
66
66
# respective Ruby implementation.
67
67
# 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
33
33
assert_equal %(<h1>hello </h1>) , xpath_sanitize ( html , xpaths : %w( .//script ) )
34
34
end
35
35
36
- def test_remove_xpaths_removes_all_occurences_of_xpath
36
+ def test_remove_xpaths_removes_all_occurrences_of_xpath
37
37
html = %(<section><header><script>code!</script></header><p>hello <script>code!</script></p></section>)
38
38
assert_equal %(<section><header></header><p>hello </p></section>) , xpath_sanitize ( html , xpaths : %w( .//script ) )
39
39
end
You can’t perform that action at this time.
0 commit comments