<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>Hi sirs,&lt;br /&gt; another important feature that we need to use is the 'sanitize' helper. This Ruby on Rails helper filters HTML nodes and attributes and strips invalid protocols. Here in our case the use it on the simpler way:&lt;br /&gt; &lt;code&gt;&amp;lt;%= sanitize(post.body) %&amp;gt;&lt;/code&gt;&lt;br /&gt; Other time you can choose the options ':tags' and ':attributes' to do a custom use where just the HTML tags and attributes pointed here are allowed to be interpreted.&lt;br /&gt; It is another little tip that helps in malicious posts or comments containing javascripts codes or comments with different enconding. Here comes the Rails API link to more information about this: &lt;a href=&quot;http://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#M000936&quot; title=&quot;Sanitize Helper&quot; target=&quot;_blank&quot;&gt;SanitizeHelper&lt;/a&gt;.&lt;br /&gt; See you.</body>
  <created-at type="datetime">2008-01-14T13:08:17Z</created-at>
  <id type="integer">12</id>
  <permalink>html-filtering-with-sanitize-helper</permalink>
  <title>HTML Filtering with sanitize helper</title>
  <updated-at type="datetime">2008-04-18T10:03:20Z</updated-at>
  <user-id type="integer">3</user-id>
</post>
