我不明白这个请求。你是想让普通用户只需在回复中发布任意 JavaScript 代码,就能在你的 Discourse 中注入吗?这将会是一场安全噩梦。
codinghorror
(Jeff Atwood)
2
相关话题
| 话题 | 回复 | 浏览量 | 活动 | |
|---|---|---|---|---|
| Whitelist all the code inside of a div tag? | 9 | 2670 | 2016 年10 月 12 日 | |
| Allowing additional HTML elements | 1 | 610 | 2021 年9 月 14 日 | |
| Whitelisting HTML tags / attributes | 2 | 1988 | 2020 年8 月 3 日 | |
| Post HTML Element Class Being Removed | 9 | 2748 | 2018 年11 月 3 日 | |
| What are the different ways to customize content inside a post (custom attributes and such) | 8 | 2823 | 2022 年5 月 17 日 |