Functions for parsing markup from a given input source, as well as string and filename functions for added convenience. HTML/XHTML version determined from input.
◆ tidyParseBuffer()
Parse markup in given buffer.
- Returns
- Returns the highest of
2
indicating that errors were present in the document, 1
indicating warnings, and 0
in the case of everything being okay.
- Parameters
-
tdoc | The tidy document to use for parsing. |
buf | The TidyBuffer containing data to parse. |
◆ tidyParseFile()
Parse markup in named file.
- Returns
- Returns the highest of
2
indicating that errors were present in the document, 1
indicating warnings, and 0
in the case of everything being okay.
- Parameters
-
tdoc | The tidy document to use for parsing. |
filename | The filename to parse. |
◆ tidyParseSource()
Parse markup in given generic input source.
- Returns
- Returns the highest of
2
indicating that errors were present in the document, 1
indicating warnings, and 0
in the case of everything being okay.
- Parameters
-
tdoc | The tidy document to use for parsing. |
source | A TidyInputSource containing data to parse. |
◆ tidyParseStdin()
Parse markup from the standard input.
- Parameters
-
tdoc | The tidy document to use for parsing. |
- Returns
- Returns the highest of
2
indicating that errors were present in the document, 1
indicating warnings, and 0
in the case of everything being okay.
◆ tidyParseString()
Parse markup in given string.
- Returns
- Returns the highest of
2
indicating that errors were present in the document, 1
indicating warnings, and 0
in the case of everything being okay.
- Parameters
-
tdoc | The tidy document to use for parsing. |
content | The string to parse. |