readhtml function (or read(fname, HTMLDocument))
Opened this issue · 1 comments
scls19fr commented
Hello,
Gumbo have a parsehtml
function but reading HTML from file can be do using
parsehtml(read(filename, String))
Maybe a readhtml
function should be defined as
readhtml(filename, args... ; kwargs...) = parsehtml(read(filename, String), args...; kwargs...)
An other API idea could be (to mimic read
API) to have the following functions:
parse(HTMLDocument, input)
and
read(filename, HTMLDocument)
What is your opinion about such API idea?
Kind regards