class ActionView::Helpers::TagHelper::TagBuilder

Public Instance Methods

tag_options(options, escape = true) click to toggle source
# File lib/green_monkey/ext/action_view.rb, line 40
def tag_options(options, escape = true)
  str = tag_options_before_green_monkey(options, escape)

  if options['itemscope'] || options[:itemscope]
    str = (str + '').sub(/itemscope=('|")itemscope('|")/, 'itemscope').html_safe
  end

  str
end
tag_options_before_green_monkey(options, escape = true)

this hack replaces itemscope=“itemscope” => itemscope to make it follow standarts (www.w3.org/TR/microdata/#typed-items)

Alias for: tag_options