BetaOptional Betafilenamefilename (optional): A string value that is used to identify the file to be parsed.
Optional BetamaxmaxASTNodes (optional): Maximum allowed number of AST nodes to create during parsing. Default is 100000. This limit prevents memory exhaustion from inputs with excessive elements. Set to 0 to disable this limit (not recommended for untrusted inputs).
Optional BetamaxmaxEdgeChainDepth (optional): Maximum allowed depth for chained edges. Default is 1000. This limit prevents stack overflow attacks from deeply chained edge structures.
Optional BetamaxmaxHtmlNestingDepth (optional): Maximum allowed nesting depth for HTML-like strings. Default is 100. This limit prevents stack overflow attacks from deeply nested HTML structures.
Optional BetamaxmaxInputSize (optional): Maximum allowed input size in bytes. Default is 10MB (10485760 bytes). This limit prevents memory exhaustion from extremely large inputs. Set to 0 to disable this limit (not recommended for untrusted inputs).
CommonParseOptions is an interface that defines the properties needed in order to parse a file.