首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
V2EX 提问指南
广告
V2EX
›
问与答
Simditor 编辑器很好,但是怎么让它的 value 变成 markdown
ericls
·
2014-05-09 19:51:47 +08:00
· 2830 次点击
这是一个创建于 3788 天前的主题,其中的信息可能已经有所发展或是发生改变。
或者有没有类似的东西
html实在不知道怎么才安全
markdown可能会好一些吧
Markdown
value
HTML
3 条回复
•
2014-05-24 23:31:27 +08:00
1
gihnius
2014-05-09 19:59:05 +08:00
1
如果服务端使用 Go, 可以参考这个
https://www.v2ex.com/t/111386
ruby:
https://github.com/rgrove/sanitize
其它类似
2
ericls
OP
2014-05-09 20:03:57 +08:00
@
gihnius
在楼主的指点下 准备试试
https://pypi.python.org/pypi/bleach/1.4
3
kshift
2014-05-24 23:31:27 +08:00
html 转 Markdown 并没有一个非常好的解决方案。
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
2443 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms ·
UTC 03:29
·
PVG 11:29
·
LAX 20:29
·
JFK 23:29
Developed with
CodeLauncher
♥ Do have faith in what you're doing.