@lightweightform/theme-common
Version:
Common utilities for Lightweightform themes
15 lines (14 loc) • 576 B
TypeScript
/**
* Removes all comments from an HTML file.
* @param content HTML file content.
* @returns HTML file content with no comments.
*/
export declare function htmlRemoveComments(content: string): string;
/**
* Whether a given HTML file contains an HTML element with a given tag.
* @param content HTML file content.
* @param tag Tag of element to check (inserted in a `RegExp`).
* @returns Whether the given HTML file content contains an HTML element with
* the given tag.
*/
export declare function htmlContainsTag(content: string, tag: string): boolean;