mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-02 10:33:39 +00:00
12 lines
280 B
TypeScript
12 lines
280 B
TypeScript
import { HTMLElement, Options, parse as _parse } from 'node-html-parser';
|
|
|
|
export { HTMLElement };
|
|
|
|
export function parse(html: string, config?: Partial<Options>): HTMLElement {
|
|
if (typeof config !== 'undefined') {
|
|
return _parse(html, config);
|
|
}
|
|
|
|
return _parse(html);
|
|
}
|