fastladder/fastladder

View on GitHub
app/helpers/mobile_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
module MobileHelper
  def remove_style_attr_of_all_tags(html)
    html && html.gsub(/<[^>]+>/) { |tag| tag.gsub(/style="[^"]+"/, '') }
  end
end