Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Feb 10, 2017
1 parent 362f72d commit 663bf35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rails/html/sanitizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test/sanitizer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_remove_xpaths_removes_an_xpath
assert_equal %(<h1>hello </h1>), 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 = %(<section><header><script>code!</script></header><p>hello <script>code!</script></p></section>)
assert_equal %(<section><header></header><p>hello </p></section>), xpath_sanitize(html, xpaths: %w(.//script))
end
Expand Down

0 comments on commit 663bf35

Please sign in to comment.