TulvL
V2EX  ›  反馈

能否识别回复中新通用顶级域?

  •  
  •   TulvL · Jun 14, 2021 · 2358 views
    This topic created in 1801 days ago, the information mentioned may be changed or developed.
    V2EX 回复中的经典通用顶级域会被自动识别为超链接,但新通用顶级域不会识别,这个问题不知道会否修复?
    5 replies    2021-10-02 06:57:03 +08:00
    Girlphobia
        2
    Girlphobia  
       Jun 14, 2021
    这个问题 Livid 之前研究过,最终源头是用来清理 HTML 的 https://github.com/mozilla/bleach 内配置的一套 allowlist 。那个 repo 上有类似的要求增加顶级域名的 Pull requests,但是似乎都没有被接受。
    TulvL
        3
    TulvL  
    OP
       Jun 14, 2021   ❤️ 1
    @Girlphobia 感谢回复
    我看了下,这个问题最早 2016 年就有人提出了 https://github.com/mozilla/bleach/issues/223
    似乎也存在自定义顶级域的方法 https://github.com/mozilla/bleach/issues/367
    Livid
        4
    Livid  
    MOD
    PRO
       Oct 2, 2021
    是的,所以目前我们在手工维护这样的一个列表。

    如果你看到漏掉了的我们可以加上。
    Livid
        5
    Livid  
    MOD
    PRO
       Oct 2, 2021
    今天会把 stream 和 community 加上。谢谢。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5519 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 02:35 · PVG 10:35 · LAX 19:35 · JFK 22:35
    ♥ Do have faith in what you're doing.