Skip to content
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

escapeHTML转义时遇到javascript内容会将"转义为 & # 39 ; #73

Closed
lhyhappy365 opened this issue Oct 20, 2020 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@lhyhappy365
Copy link

No description provided.

@lhyhappy365
Copy link
Author

lhyhappy365 commented Oct 20, 2020

示例:
源文件中包含如下js代码
image
正常转义以后应该是
image

目前转义以后"'"被转义为& # 39 ;
image

@lhyhappy365 lhyhappy365 changed the title escapeHTML转义时遇到javascript内容会将"转义为' escapeHTML转义时遇到javascript内容会将"转义为 & # 39 ; Oct 23, 2020
@harttle harttle added the bug Something isn't working label Nov 11, 2020
harttle added a commit to searchfe/san-ssr-target-php that referenced this issue Nov 20, 2020
harttle pushed a commit to searchfe/san-ssr-target-php that referenced this issue Nov 20, 2020
## [2.3.1](v2.3.0...v2.3.1) (2020-11-20)

### Bug Fixes

* script 内容跳过转义,见 baidu/san-ssr#73 ([3597804](3597804))
harttle pushed a commit that referenced this issue Nov 20, 2020
## [4.0.3](v4.0.2...v4.0.3) (2020-11-20)

### Bug Fixes

* script 内容跳过转义,见 [#73](#73) ([3ea06a4](3ea06a4))
@harttle harttle closed this as completed Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants