Skip to content

Commit

Permalink
chore(plugins/tidy-css): add comment re escape and replace purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Dec 2, 2021
1 parent 4cb753b commit 64fad0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/tidy-css/index.js
Expand Up @@ -73,6 +73,7 @@ async function plugin(server) {
fonts.forEach((font) => {
if (/[^a-zA-Z-]+/.test(font.trim())) {
parsedFonts.push(
// Stop escaping of <style> elements and code injection
cssEsc(font.replace(/<\/style>/gm, "").trim(), {
quotes: "double",
wrap: true,
Expand Down

0 comments on commit 64fad0c

Please sign in to comment.