Method: RedCloth3#filter_styles

Defined in:
lib/redmine/wiki_formatting/textile/redcloth3.rb

#filter_stylesObject

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’)



188
189
190
# File 'lib/redmine/wiki_formatting/textile/redcloth3.rb', line 188

def filter_styles
  @filter_styles
end