vendor/profile/ruby/2.6.0/gems/html-pipeline-2.13.0/lib/html/pipeline.rb
# Work around an issue with utf-8 encoded data being erroneously converted to
# ... some other shit when replacing text nodes. See 'utf-8 output 2' in
# user_content_test.rb for details.
Work around an issue with utf-8 encoded data being erroneously converted to
some other shit when replacing text nodes. See 'utf-8 output 2' in
user_content_test.rb for details.
Work around an issue with utf - 8 encoded data being erroneously converted to some other shit when replacing text nodes . See ' utf - 8 output 2 ' in user_content_test . rb for details .
def replace_with_encoding_fix(replacement)
      if replacement.respond_to?(:to_str)
        replacement = document.fragment("<div>#{replacement}</div>").children.first.children
      end
      replace_without_encoding_fix(replacement)
    end
def replace_with_encoding_fix ( replacement ) if replacement . respond_to? ( :to_str ) replacement = document . fragment ( "<div>#{replacement}</div>" ) . children . first . children end replace_without_encoding_fix ( replacement ) end
Work around an issue with utf-8 encoded data being erroneously converted to
... some other shit when replacing text nodes.
Work around an issue with utf - 8 encoded data being erroneously converted to ... some other shit when replacing text nodes .
replacement
<not_specific>