Permalink
Browse files

Merge pull request #47 from greggawatt/patch-1

Update README.rdoc
  • Loading branch information...
joshuasiler committed Mar 27, 2018
2 parents 4808b36 + 5c9b35c commit dd7ee6caaa6c899f4d5389c1b2fe4a17f1e5f326
Showing with 7 additions and 0 deletions.
  1. +7 −0 README.rdoc
@@ -171,6 +171,13 @@ Example:
Will become:

<acronym title="American Civil Liberties Union">ACLU</acronym>

== Filtering HTML

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 filter the script tags from the HTML resulting in:
"&lt;script&gt;alert(1)&lt;/script&gt;"

== Adding Tables

0 comments on commit dd7ee6c

Please sign in to comment.