• 请不要在回答技术问题时复制粘贴 AI 生成的内容
dqaria
V2EX  ›  程序员

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

  •  
  •   dqaria ·
    dqaria · Mar 12, 2013 · 4409 views
    This topic created in 4831 days ago, the information mentioned may be changed or developed.
    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 replies    1970-01-01 08:00:00 +08:00
    dqaria
        1
    dqaria  
    OP
       Mar 12, 2013
    http://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize
    这边有文档~~rails果然强大~各种好用的功能都准备好了~~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5497 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 93c8b4a0 · 851ms · UTC 07:54 · PVG 15:54 · LAX 00:54 · JFK 03:54
    ♥ Do have faith in what you're doing.