critters icon indicating copy to clipboard operation
critters copied to clipboard

critters de-encodes html entities

Open danielroe opened this issue 2 years ago • 1 comments

Context

https://github.com/nuxt/assets/commit/03416341f7664f232da121deebb2fb53ab3dd864 https://github.com/nuxt/nuxt/issues/22383

Bug

HTML entities are decoded in the process:

<div>
  &lt;NuxtWelcome /&gt;
</div>

gets transformed to:

<div>
  <NuxtWelcome />
</div>

Reproduction

https://stackblitz.com/edit/stackblitz-starters-3vqjhj?description=Starter%20project%20for%20Node.js,%20a%20JavaScript%20runtime%20built%20on%20Chrome's%20V8%20JavaScript%20engine&file=index.js,package.json&title=node.new%20Starter

danielroe avatar Jul 29 '23 03:07 danielroe

I think this was likely resolved in https://github.com/GoogleChromeLabs/critters/pull/133.

danielroe avatar Aug 06 '23 12:08 danielroe