function parseWithParse5(content, options, isDocument, context) {
    const opts = {
        scriptingEnabled: typeof options.scriptingEnabled === 'boolean'
            ? options.scriptingEnabled
            : true,
        treeAdapter: htmlparser2Adapter,
        sourceCodeLocationInfo: options.sourceCodeLocationInfo,
    };
    return isDocument
        ? parseDocument(content, opts)
        : parseFragment(context, content, opts);
}
/**
 * Parse the content with `parse5` in the context of the given `ParentNode`.
 *
 * @param content - The content to parse.
 * @param options - A set of options to use to parse.
 * @param isDocument - Whether to parse the content as a full HTML document.
 * @param context - The context in which to parse the content.
 * @returns The parsed content.
 */
Parse the content with `parse5` in the context of the given `ParentNode`.
@param content - The content to parse.
@param options - A set of options to use to parse.
@param isDocument - Whether to parse the content as a full HTML document.
@param context - The context in which to parse the content.
@returns The parsed content.
Parse the content with ` parse5 ` in the context of the given ` ParentNode ` . @param content - The content to parse . @param options - A set of options to use to parse . @param isDocument - Whether to parse the content as a full HTML document . @param context - The context in which to parse the content . @returns The parsed content .
function parseWithParse5(content, options, isDocument, context) {
    const opts = {
        scriptingEnabled: typeof options.scriptingEnabled === 'boolean'
            ? options.scriptingEnabled
            : true,
        treeAdapter: htmlparser2Adapter,
        sourceCodeLocationInfo: options.sourceCodeLocationInfo,
    };
    return isDocument
        ? parseDocument(content, opts)
        : parseFragment(context, content, opts);
}
function parseWithParse5 ( content , options , isDocument , context ) { const opts = { scriptingEnabled : typeof options . scriptingEnabled === 'boolean' ? options . scriptingEnabled : true , treeAdapter : htmlparser2Adapter , sourceCodeLocationInfo : options . sourceCodeLocationInfo , } ; return isDocument ? parseDocument ( content , opts ) : parseFragment ( context , content , opts ) ; }
Parse the content with `parse5` in the context of the given `ParentNode`.
Parse the content with ` parse5 ` in the context of the given ` ParentNode ` .