sanitizer html in controller
1 2 3 4 5 |
sanitizer = HTML::FullSanitizer.new sanitizer.sanitize("<p>This <u>is<u> a <a href='test.html'><strong>test</strong></a>.</p>") sanitizer = HTML::LinkSanitizer.new sanitizer.sanitize("<a href='almost'>on my mind</a>\n<A href='almost'>all day long</A>") |
Posted by devon At September 26, 2008 18:14
请登录以发表评论。