Class: Thredded::HtmlPipeline::SpoilerTagFilter::BeforeMarkup

Inherits:
HTML::Pipeline::Filter
  • Object
show all
Defined in:
lib/thredded/html_pipeline/spoiler_tag_filter.rb

Instance Method Summary collapse

Instance Method Details

#callObject



46
47
48
49
50
51
52
# File 'lib/thredded/html_pipeline/spoiler_tag_filter.rb', line 46

def call
  @html = +html # Unfreeze
  SpoilerTagFilter.spoiler_tags_replacements.each do |(pattern, replacement)|
    html.gsub! pattern, replacement
  end
  html
end