# https://groups.google.com/a/3scale.net/forum/#!msg/eng/Omi-69_Q0VM/j6Cs1jfWBgAJ

ActionView::Helpers::TagHelper.class_eval do

  def tag_option(key, value, escape)
    value = value.join(" ") if value.is_a?(Array)
    value = ERB::Util.h(value) if escape

    %(#{key}="#{value.gsub(/"/, '&quot;'.freeze)}")
  end
end

