rubys / nokogumbo

A Nokogiri interface to the Gumbo HTML5 parser.
Apache License 2.0
186 stars 114 forks source link

Add support for HTML5 serialization #93

Closed stevecheckoway closed 6 years ago

stevecheckoway commented 6 years ago

The various serialization APIs follow the standard for serializing HTML fragments. As an extension, multiple newlines at the beginning of a <pre>, <textedit>, and <listing> can be preserved using the preserve_newline: true option to the serializing functions that take options.

Closes: #14