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

2018年06月27日 页面中 JavaScript 中正则表达式中的特殊字符被转码 #36

Open
imzyf opened this issue Jun 27, 2018 · 1 comment

Comments

@imzyf
Copy link
Contributor

imzyf commented Jun 27, 2018

今天遇到 HTML 页面中直接写了 JavaScript 的验证的表达式:

'[©]+'

里面涉及了一个特殊字符 ©,页面第一次加载时,一起正常,但是 ajax 提交后,pjax reload 页面后,© 被 encode

解决方法:使用 unicode [\\u00A9]+

@imzyf
Copy link
Contributor Author

imzyf commented Jun 27, 2018

一款很秀的 正则表达式 工具推荐给大家 jex.im/regulex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant