Skip to content

It will convert all " to " in the HTML, this breaks the HTML. #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
codyng opened this issue Feb 4, 2025 · 3 comments
Closed
Labels
bug Something isn't working confirmed priority

Comments

@codyng
Copy link

codyng commented Feb 4, 2025

Hi author,

Firstly thanks for your great package!!!

I found that if my page contains something like below:
<div data-opts="{&quot;name&quot;:&quot;MyReactComponent&quot;,&quot;value&quot;:true}"></div>

After the obfuscation, it changed to
<div data-opts="{"name":"MyReactComponent","value":true}"></div>

This breaks the HTML as double quote inside double quote.

How to solve this out or have I missed something in the config file?

Many Thanks!!
Cheeeeeeers!!

@soranoo
Copy link
Owner

soranoo commented Feb 4, 2025

Lets' checkout the v.2.2.19 by npm i next-css-obfuscator@latest

github-actions bot pushed a commit that referenced this issue Apr 25, 2025
# 1.0.0-beta.1 (2025-04-25)

### Bug Fixes

* fix html tests ([f517839](f517839))
* **html:** fix [#57](#57) ([a638538](a638538))
* **html:** fix incorrect html class name truncation ([7cb985d](7cb985d))
* **js-ast:** added support to `MemberExpression` [#45](#45) ([8c95ba0](8c95ba0))
* **js-ast:** added support to `TemplateLiteral` & `TemplateElement` [#45](#45) ([0dd46b3](0dd46b3))

### Features

* Enables semantic release for automated publishing ([b43a194](b43a194))
* Upgrades to v3 with new CSS transformation ([0afd780](0afd780))
* v3 migration with TailwindCSS 4 support ([668a5f6](668a5f6))
Copy link

🎉 This issue has been resolved in version 1.0.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this issue Apr 25, 2025
# 1.0.0-beta.1 (2025-04-25)

### Bug Fixes

* fix html tests ([f517839](f517839))
* **html:** fix [#57](#57) ([a638538](a638538))
* **html:** fix incorrect html class name truncation ([7cb985d](7cb985d))
* **js-ast:** added support to `MemberExpression` [#45](#45) ([8c95ba0](8c95ba0))
* **js-ast:** added support to `TemplateLiteral` & `TemplateElement` [#45](#45) ([0dd46b3](0dd46b3))

### Features

* Enables semantic release for automated publishing ([b43a194](b43a194))
* Upgrades to v3 with new CSS transformation ([0afd780](0afd780))
* v3 migration with TailwindCSS 4 support ([668a5f6](668a5f6))
github-actions bot pushed a commit that referenced this issue Apr 25, 2025
# 3.0.0-beta.3 (2025-04-25)

### Bug Fixes

* fix html tests ([f517839](f517839))
* **html:** fix [#57](#57) ([a638538](a638538))
* **html:** fix incorrect html class name truncation ([7cb985d](7cb985d))
* **js-ast:** added support to `MemberExpression` [#45](#45) ([8c95ba0](8c95ba0))
* **js-ast:** added support to `TemplateLiteral` & `TemplateElement` [#45](#45) ([0dd46b3](0dd46b3))

### Features

* Enables semantic release for automated publishing ([b43a194](b43a194))
* Upgrades to v3 with new CSS transformation ([0afd780](0afd780))
* v3 migration with TailwindCSS 4 support ([668a5f6](668a5f6))
Repository owner deleted a comment from github-actions bot Apr 25, 2025
@coderabbitai coderabbitai bot mentioned this issue May 31, 2025
github-actions bot pushed a commit that referenced this issue May 31, 2025
# 3.0.0 (2025-05-31)

### Bug Fixes

* fix html tests ([f517839](f517839))
* **html:** fix [#57](#57) ([a638538](a638538))
* **html:** fix incorrect html class name truncation ([7cb985d](7cb985d))
* **js-ast:** added support to `MemberExpression` [#45](#45) ([8c95ba0](8c95ba0))
* **js-ast:** added support to `TemplateLiteral` & `TemplateElement` [#45](#45) ([0dd46b3](0dd46b3))
* update key names in loadConversionTables for consistency ([3d6035d](3d6035d))

### Features

* Enables semantic release for automated publishing ([b43a194](b43a194))
* support ident prefix/suffix options ([32952bf](32952bf))
* Upgrades to v3 with new CSS transformation ([0afd780](0afd780))
* v3 migration with TailwindCSS 4 support ([668a5f6](668a5f6))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed priority
Projects
None yet
Development

No branches or pull requests

2 participants