V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
ericls
V2EX  ›  问与答

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

  •  
  •   ericls · 2014-05-09 19:51:47 +08:00 · 2774 次点击
    这是一个创建于 3633 天前的主题,其中的信息可能已经有所发展或是发生改变。
    或者有没有类似的东西
    html实在不知道怎么才安全
    markdown可能会好一些吧
    3 条回复    2014-05-24 23:31:27 +08:00
    gihnius
        1
    gihnius  
       2014-05-09 19:59:05 +08:00   ❤️ 1
    如果服务端使用 Go, 可以参考这个 https://www.v2ex.com/t/111386
    ruby: https://github.com/rgrove/sanitize
    其它类似
    ericls
        2
    ericls  
    OP
       2014-05-09 20:03:57 +08:00
    @gihnius 在楼主的指点下 准备试试 https://pypi.python.org/pypi/bleach/1.4
    kshift
        3
    kshift  
       2014-05-24 23:31:27 +08:00
    html 转 Markdown 并没有一个非常好的解决方案。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1168 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 23:48 · PVG 07:48 · LAX 16:48 · JFK 19:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.