UNPKG

@genexus/web-standard-functions

Version:

GeneXus JavaScript standard functions library for web generators

11 lines 461 B
/** * Detects and corrects many common coding errors and strives to produce visually equivalent markup that is both W3C compliant and works on most browsers. * A common use of this function is to convert plain HTML to XHTML. * @param {string} target * @return string */ import * as htmltidy from "tidy-html5"; export const htmlClean = (s) => { return htmltidy.tidy_html5(s, { quiet: true, "tidy-mark": false }); }; //# sourceMappingURL=htmlClean.js.map