Sha256: e270a061cf1349f1396c99252a4623007063df3526519c360b5fe128c4fb5c09
Contents?: true
Size: 583 Bytes
Versions: 10
Compression:
Stored size: 583 Bytes
Contents
# frozen_string_literal: true module BootstrapEmail module Converter class ForceEncoding < Base def self.replace(html) # force utf-8 character encoded in iOS Mail: https://github.com/bootstrap-email/bootstrap-email/issues/50 # this needs to be done after the document has been outputted to a ascii string so it doesn't get converted html.sub!( '<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">', '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">' ) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems