Module: Rails::HTML::Concern::Serializer::UTF8Encode
- Included in:
- Rails::HTML4::FullSanitizer, Rails::HTML4::LinkSanitizer, Rails::HTML4::SafeListSanitizer, Rails::HTML5::FullSanitizer, Rails::HTML5::LinkSanitizer, Rails::HTML5::SafeListSanitizer
- Defined in:
- lib/rails/html/sanitizer.rb
Instance Method Summary collapse
Instance Method Details
#serialize(fragment) ⇒ Object
186 187 188 |
# File 'lib/rails/html/sanitizer.rb', line 186 def serialize(fragment) properly_encode(fragment, encoding: "UTF-8") end |