Skip to content

Commit

Permalink
Merge pull request #138 from rmacklin/fix-inaccurate-example-in-readme
Browse files Browse the repository at this point in the history
Fix inaccurate example in README
  • Loading branch information
flavorjones committed Jan 29, 2018
2 parents 64417c7 + 549258c commit 135d71f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Loofah overrides +to_s+ to return HTML:

unsafe_html = "ohai! <div>div is safe</div> <script>but script is not</script>"

doc = Loofah.fragment(unsafe_html).scrub!(:strip)
doc = Loofah.fragment(unsafe_html).scrub!(:prune)
doc.to_s # => "ohai! <div>div is safe</div> "

and +text+ to return plain text:
Expand Down

0 comments on commit 135d71f

Please sign in to comment.