gitlab-org--gitlab-foss/config/initializers/premailer.rb
Heinrich Lee Yu 473674a2c3
Prevent premailer from converting HTML entities
This prevents `&mdash` in our templates being change to `-`
2019-04-04 15:02:00 +08:00

9 lines
253 B
Ruby

# See https://github.com/fphilipe/premailer-rails#configuration
Premailer::Rails.config.merge!(
generate_text_part: false,
preserve_styles: true,
remove_comments: true,
remove_ids: false,
remove_scripts: false,
output_encoding: 'US-ASCII'
)