Method: RedClothForTex#filter_html

Defined in:
lib/redcloth_for_tex.rb

#filter_htmlObject

Two accessor for setting security restrictions.

This is a nice thing if you’re using RedCloth for formatting in public places (e.g. Wikis) where you don’t want users to abuse HTML for bad things.

If :filter_html is set, HTML which wasn’t created by the Textile processor will be escaped.

If :filter_styles is set, it will also disable the style markup specifier. (‘red’)



179
180
181
# File 'lib/redcloth_for_tex.rb', line 179

def filter_html
  @filter_html
end