mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-14 08:36:26 +00:00
11 lines
280 B
TypeScript
11 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);
|
|
}
|