ericls
V2EX  ›  问与答

Simditor 编辑器很好,但是怎么让它的 value 变成 markdown

  •  
  •   ericls · May 9, 2014 · 3306 views
    This topic created in 4474 days ago, the information mentioned may be changed or developed.
    或者有没有类似的东西
    html实在不知道怎么才安全
    markdown可能会好一些吧
    3 replies    2014-05-24 23:31:27 +08:00
    gihnius
        1
    gihnius  
       May 9, 2014   ❤️ 1
    如果服务端使用 Go, 可以参考这个 https://www.v2ex.com/t/111386
    ruby: https://github.com/rgrove/sanitize
    其它类似
    ericls
        2
    ericls  
    OP
       May 9, 2014
    @gihnius 在楼主的指点下 准备试试 https://pypi.python.org/pypi/bleach/1.4
    kshift
        3
    kshift  
       May 24, 2014
    html 转 Markdown 并没有一个非常好的解决方案。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1337 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 16:56 · PVG 00:56 · LAX 09:56 · JFK 12:56
    ♥ Do have faith in what you're doing.