V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
dqaria
V2EX  ›  程序员

http://knewone.com/未过滤html标签。。。

  •  
  •   dqaria ·
    dqaria · 2013-03-12 15:07:48 +08:00 · 3526 次点击
    这是一个创建于 4034 天前的主题,其中的信息可能已经有所发展或是发生改变。
    http://knewone.com/things/lg-hbs-730lan-ya-er-ji-2/reviews/513ed3027373c26124000009

    正好做网站。。要加入富文本编辑模块。。。选用了和knewone一样的编辑器~

    然后正好测试了下knewone,果然用的raw呈现html。。。然后没有过滤html标签。。。。

    google了一圈~找到了一个gem:sanitize~~应该挺有用的~~
    @xiaolai https://github.com/rgrove/sanitize/
    1 条回复    1970-01-01 08:00:00 +08:00
    dqaria
        1
    dqaria  
    OP
       2013-03-12 15:12:56 +08:00
    http://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize
    这边有文档~~rails果然强大~各种好用的功能都准备好了~~
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5730 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 01:51 · PVG 09:51 · LAX 18:51 · JFK 21:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.