-
Notifications
You must be signed in to change notification settings - Fork 50
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
html元素中包含emoji表情时,生成报错 #35
Comments
修改以下代码就没问题了: |
这段代码是过滤掉 xml 中 null 控制符的,估计是误伤两个 unicode 组成的 emoji 了,可以提供下异常的 emoji |
😊😘 我随便测试了几个emoji都有问题 |
https://modern-screenshot.vercel.app/ 这两个 emoji 我浏览器是没问题,看是环境问题还是其他 emoji ,最好是把整段有问题的提供下 |
v4.4.27 支持了只启用部分特性 domToPng({
features: {
// 不启用移除控制符
removeControlCharacter: false,
}
}) |
我在MAC 端测试没问题,在安卓端测试也没问题,在IOS 16.5.1 微信8.0.39端测试就不行 |
I have the same issue - iOS only - no issue on desktop Safari |
Steps To Reproduce
html元素中包含emoji表情时,生成报错:String contained illegal UTF-16 sequence.
IOS 16.5.1 微信 8.0.39
The text was updated successfully, but these errors were encountered: