We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
frag = Nokogiri::HTML.fragment("<p>foo</p>") frag.to_xml # => "<p>foo</p>\n" frag.serialize # => "<p>foo</p>\n"
but
frag.to_s # => "<><p>foo</p></>" frag.to_html # => "<><p>foo</p></>"
The text was updated successfully, but these errors were encountered:
aaron suggests aliasing to_s and to_html to inner_html for DocumentFragments. I concur.
Sorry, something went wrong.
HTML fragments now serialize consistently. closed by 57c2ba2.
No branches or pull requests
but
The text was updated successfully, but these errors were encountered: