From d4285d9a320fad6f058fc6d71a00fb17cccf8c7c Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Wed, 1 Dec 2021 15:56:42 +0000 Subject: [PATCH] fix(plugins/tidy-html): hide html comment tags --- src/plugins/tidy-html/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/tidy-html/index.js b/src/plugins/tidy-html/index.js index e3c548f54..05a07c55c 100644 --- a/src/plugins/tidy-html/index.js +++ b/src/plugins/tidy-html/index.js @@ -56,6 +56,7 @@ async function plugin(server) { * - clean (replace legacy HTML tags) * - dropProprietaryAttributes (remove proprietary attributes, such as Microsoft data binding attributes) * - escapeCdata (convert sections to normal text) + * - hideComments (do not print HTML comment tags) * - sortAttributes (sort attributes in element in ascending alphabetic sort) */ const config = { @@ -63,6 +64,7 @@ async function plugin(server) { clean: true, dropProprietaryAttributes: true, escapeCdata: true, + hideComments: true, sortAttributes: "alpha", };