Skip to content

Commit

Permalink
Update README.rdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
detournemint authored Jan 30, 2018
1 parent c34fa19 commit 5c9b35c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,10 @@ Will become:

== Filtering HTML

RedCloth doesn't filter unsafe html tags by default, do to this use the following syntax
RedCloth doesn't filter unsafe html tags by default, do to this use the following syntax:
RedCloth.new("<script>alert(1)</script>", [:filter_html]).to_html
which will strip the script tags from the resulting HTML
which will filter the script tags from the HTML resulting in:
"&lt;script&gt;alert(1)&lt;/script&gt;"

== Adding Tables

Expand Down

0 comments on commit 5c9b35c

Please sign in to comment.