# 解析链接中的 {, ( 和 \[

**URL:** https://meta.discourse.org/t/parse-and-in-links/208842
**Category:** Bug
**Tags:** markdown
**Created:** [2021年十一月10日 23:29 UTC](https://meta.discourse.org/t/parse-and-in-links/208842 "2021-11-10T23:29:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [2021年十一月10日 23:29 UTC](https://meta.discourse.org/t/parse-and-in-links/208842/1 "2021-11-10T23:29:06Z")

</div>

示例链接：

`https://example.com/admin/reports?f={(tz)(Australia%2FAdelaide)(date_from).(date_to).(campaigns)[(5)](wz)[](lbl)[](no_lbl)[(f70eea23-21bc-4bc7-88a7-d4147c88ffdb)](completion)(any)(outcome)()}`

这是它的解析方式：链接未完整显示，并且其中一些部分被隐藏了。

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/1/91b0428a6822e03684035faf4fd5921d33a995fc.png)

如果我在 Telegram 中插入相同的链接，它会被正确解析：

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/b/3bddccfc356ec5b0342a566e7785c8173dfc5230.png)

据我所知，**`{`、`(` 和 `[`** 在 URL 中使用时都可以安全地进行编码。因此，在链接内部遇到它们时，将它们解析为链接的一部分是有意义的。
