  def scope_allowed_tags(tags)
    Rails::Html::WhiteListSanitizer.allowed_tags = tags
    yield Rails::Html::WhiteListSanitizer.new

  ensure
    Rails::Html::WhiteListSanitizer.allowed_tags = nil
  end