# 移动设备上的 URL 哈希/锚点被剥离。如何阻止这种情况？

**URL:** <https://meta.discourse.org/t/hash-anchors-are-being-stripped-from-urls-on-mobile-how-to-stop-that/408505>\
**Category:** Support\
**Tags:** mobile\
**Created:** [2026年七月25日 09:10 UTC](https://meta.discourse.org/t/hash-anchors-are-being-stripped-from-urls-on-mobile-how-to-stop-that/408505 "2026-07-25T09:10:40Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [2026年七月27日 16:02 UTC](https://meta.discourse.org/t/hash-anchors-are-being-stripped-from-urls-on-mobile-how-to-stop-that/408505/8 "2026-07-27T16:02:50Z")

</div>

啊，我明白了。是的，看起来富文本编辑器会移除这些内容，但 Markdown 编辑器不会……在富文本编辑器中，我认为你需要将其包裹在 div 中以保留 HTML

```html
 <div><a name="x"></a></div>

```

---

_[View the full topic](https://meta.discourse.org/t/hash-anchors-are-being-stripped-from-urls-on-mobile-how-to-stop-that/408505)._
