Skip to main content

htmlCreateFileParserCtxt

Function htmlCreateFileParserCtxt 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn htmlCreateFileParserCtxt( filename: *const c_char, encoding: *const c_char, ) -> *mut c_void
Expand description

Create a parser context for an HTML file. The file is read through the registered xmlParserInputBufferCreateFilenameDefault (php streams loader) when one is installed, else via the built-in file read.

§UPSTREAM-PARITY

htmlParserCtxt *htmlCreateFileParserCtxt(const char *filename,
                                         const char *encoding);

§Safety

  • filename/encoding must be NULL or valid NUL-terminated C strings live for the call.