-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
4.0.8 版本的 Taro.options.html 为空 #17083
Comments
if (!Taro.options.html) {
Taro.options.html = {
skipElements: new Set(["style", "script"]),
voidElements: new Set([
"!doctype",
"area",
"base",
"br",
"col",
"command",
"embed",
"hr",
"img",
"input",
"keygen",
"link",
"meta",
"param",
"source",
"track",
"wbr",
]),
closingElements: new Set([
"html",
"head",
"body",
"p",
"dt",
"dd",
"li",
"option",
"thead",
"th",
"tbody",
"tr",
"td",
"tfoot",
"colgroup",
]),
renderHTMLTag: false,
};
}
不知道有没有通过配置的方式可以来设置 Taro.options.html ? |
This was referenced Dec 28, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
微信小程序
小程序基础库: 2.22.0
使用框架: React
复现步骤
期望结果
期待和 3.6.35 一样,为一个对象。 __dangerouslySetInnerHTML 设置的 HTML 可以在微信小程序上正常显示。
实际结果
结果为空。导致在 __dangerouslySetInnerHTML 设置的 HTML,在微信小程序上展示不出来。
环境信息
The text was updated successfully, but these errors were encountered: