@ng-doc/core
Version:
<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>
14 lines (13 loc) • 581 B
TypeScript
import { Selector } from 'css-what/lib/es/types';
import { Node, NodeTag } from 'posthtml-parser';
export declare class NgDocHtmlParser {
private html;
private readonly parsedHTML;
constructor(html: string);
find(selector: string): NodeTag | undefined;
removeAttribute(node: Node, name: string): void;
setAttribute(node: Node, name: string, value?: string): void;
setAttributesFromSelectors(element: NodeTag, selectors: Selector[]): void;
fillAngularAttributes(element: NodeTag, properties: Record<string, string>): void;
serialize(): string;
}