1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-25 02:02:11 +03:00

added the same htmlRead APIs than their XML counterparts new parser

* HTMLparser.c testHTML.c xmllint.c include/libxml/HTMLparser.h:
  added the same htmlRead APIs than their XML counterparts
* include/libxml/parser.h: new parser options, not yet implemented,
  added an options field to the context.
* tree.c: patch from Shaun McCance to fix bug #123238 when ]]>
  is found within a cdata section.
* result/noent/cdata2 result/cdata2 result/cdata2.rdr
  result/cdata2.sax test/cdata2: add one more cdata test
Daniel
This commit is contained in:
Daniel Veillard
2003-09-26 12:47:50 +00:00
parent 60942def6a
commit 9475a352bd
12 changed files with 732 additions and 21 deletions

View File

@ -46,6 +46,7 @@ static int repeat = 0;
static int noout = 0;
static int push = 0;
static char *encoding = NULL;
static int options = 0;
xmlSAXHandler emptySAXHandlerStruct = {
NULL, /* internalSubset */
@ -725,7 +726,7 @@ parseAndPrintFile(char *filename) {
fclose(f);
}
} else {
doc = htmlParseFile(filename, NULL);
doc = htmlReadFile(filename, NULL, options);
}
if (doc == NULL) {
xmlGenericError(xmlGenericErrorContext,