Skip to content

Commit 663bf35

Browse files
committed
typos
1 parent 362f72d commit 663bf35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rails/html/sanitizer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

test/sanitizer_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)