Skip to content

Commit c34fa19

Browse files
authored
Update README.rdoc
1 parent 4808b36 commit c34fa19

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.rdoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@ Example:
171171
Will become:
172172

173173
<acronym title="American Civil Liberties Union">ACLU</acronym>
174+
175+
== Filtering HTML
176+
177+
RedCloth doesn't filter unsafe html tags by default, do to this use the following syntax
178+
RedCloth.new("<script>alert(1)</script>", [:filter_html]).to_html
179+
which will strip the script tags from the resulting HTML
174180

175181
== Adding Tables
176182

0 commit comments

Comments
 (0)