// htmlReadFile func ReadHTMLFile(filename string, encoding string, options HTMLParserOption) *HTMLDocument { ptrf := C.CString(filename) defer C.free_string(ptrf) ptre := C.CString(encoding) defer C.free_string(ptre) doc := C.htmlReadFile(ptrf, ptre, C.int(options)) return makeHTMLDoc(doc) }
func HtmlReadFile(url string, encoding string, opts int) *C.xmlDoc { return C.htmlReadFile(C.CString(url), C.CString(encoding), C.int(opts)) }