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

feat: remove <style></style> 标签信息 #342

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

longhaiyan
Copy link

由于运营在使用富文本编辑器的时候会通过在其它地方拷贝内容的方式进行文章编辑,所以极有可能会将 <style></style> 粘贴进富文本编辑器。

wxParse 在解析含有 <style></style> 信息的富文本字符串时,<style></style> 内容会被当做 text 进行解析,影响页面内容展示,所以需要过滤掉 <style></style> 信息。

image

@MrNestor
Copy link

这种事情感觉可以手动打死运营的。
如果后期要做对style的支持,这个不是就坑了么。

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

Successfully merging this pull request may close these issues.

None yet

2 participants