# 脚本标签导致帖子为空

**URL:** https://meta.discourse.org/t/script-tag-results-in-empty-posts/249440
**Category:** Support
**Created:** [2022年十二月20日 03:16 UTC](https://meta.discourse.org/t/script-tag-results-in-empty-posts/249440 "2022-12-20T03:16:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![misticos](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/misticos/32/286457_2.png) [@misticos](https://meta.discourse.org/u/misticos)
#### Post date: [2022年十二月20日 03:16 UTC](https://meta.discourse.org/t/script-tag-results-in-empty-posts/249440/1 "2022-12-20T03:16:55Z")

</div>

当发布带有 script html 标签（仅\*）的帖子时，它会显示为空，内容完全消失：

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/0/4/304143dd5d6bad4dc9705bed1d91d48c2c805257.png)

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2022年十二月20日 03:18 UTC](https://meta.discourse.org/t/script-tag-results-in-empty-posts/249440/2 "2022-12-20T03:18:31Z")

</div>

是的，HTML 不会在回复中呈现，您也不能以这种方式在主题中执行客户端脚本。两者都是已知的。

> [@Bypassing character minimum on posts via HTML](https://meta.discourse.org/t/bypassing-character-minimum-on-posts-via-html/112970/2):
>
> Yes, this is well known, there are many topics on this. Have a search. It’s WONTFIX because there are as many methods to bypass as there are grains of sand on a beach. We only care about the common and easy ones.

---

<div class="post-metadata">

### Author: ![misticos](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/misticos/32/286457_2.png) [@misticos](https://meta.discourse.org/u/misticos)
#### Post date: [2022年十二月20日 03:20 UTC](https://meta.discourse.org/t/script-tag-results-in-empty-posts/249440/3 "2022-12-20T03:20:54Z")

</div>

是否真的没有办法检查它会渲染成什么样子并禁止此类帖子？ ☹ 好的，所以我想如果这是一个不会修复的问题，那么我将不得不警告/禁止用户并删除此类帖子？

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2023年一月19日 03:21 UTC](https://meta.discourse.org/t/script-tag-results-in-empty-posts/249440/4 "2023-01-19T03:21:43Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
