diff --git a/type.go b/type.go index dd3778d..7f34170 100644 --- a/type.go +++ b/type.go @@ -56,6 +56,24 @@ func NewDocumentFromReader(r io.Reader) (*Document, error) { return newDocument(root, nil), nil } +// NewDocumentFromReaderWithOptions is like NewDocumentFromReader, with the +// parse options of the html package. +// +// The option that usually matters is html.ParseOptionEnableScripting(false), +// which makes