<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -13,32 +13,7 @@ module ApplicationHelper
   end
   
   def safe(txt)
-    # Poor mans' sanitization!
-    
-    txt = h(txt)
-    txt.gsub!(/\&amp;quot;/, '&quot;')
-    txt.gsub!(/\&amp;gt;/, '&gt;')
-    
-    txt.gsub!(/\n/, '&lt;br /&gt;')
-    
-    txt.gsub!(/\&amp;lt;a href/, '&lt;a href')
-    txt.gsub!(/\&amp;lt;\/a&gt;/, '&lt;/a&gt;')
-
-    txt.gsub!(/\&amp;lt;\/blockquote&gt;/, '&lt;/blockquote&gt;')
-    txt.gsub!(/\&amp;lt;\/code&gt;/, '&lt;/code&gt;')
-    txt.gsub!(/\&amp;lt;\/b&gt;/, '&lt;/b&gt;')
-    txt.gsub!(/\&amp;lt;\/strong&gt;/, '&lt;/strong&gt;')
-    txt.gsub!(/\&amp;lt;\/i&gt;/, '&lt;/i&gt;')
-    txt.gsub!(/\&amp;lt;\/em&gt;/, '&lt;/em&gt;')
-
-    txt.gsub!(/\&amp;lt;blockquote&gt;/, '&lt;blockquote&gt;')
-    txt.gsub!(/\&amp;lt;code&gt;/, '&lt;code&gt;')
-    txt.gsub!(/\&amp;lt;b&gt;/, '&lt;b&gt;')
-    txt.gsub!(/\&amp;lt;strong&gt;/, '&lt;strong&gt;')
-    txt.gsub!(/\&amp;lt;i&gt;/, '&lt;i&gt;')
-    txt.gsub!(/\&amp;lt;em&gt;/, '&lt;em&gt;')
-
-    txt
+    sanitize(txt, :tags =&gt; %w(a p code b strong i em blockquote), :attributes =&gt; %w(href)).split(&quot;\n&quot;).join(&quot;\n&lt;br /&gt;&quot;)
   end
   
 end</diff>
      <filename>app/helpers/application_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -129,14 +129,14 @@ A.home {
   font-weight: bold;
 }
 
+/* Commented for annoyance-factor (gray gets annoying / ruins the look imho)
 .even {
 	background-color: #ffffff;
 }
 
 .odd {
 	background-color: #f0f0f0;
-
-}
+}*/
 
 BODY.inner .entry {
   line-height: 1.6em;</diff>
      <filename>public/stylesheets/main.css</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3ab0fffacb0033426be2caabe5ff3b783364b3b0</id>
    </parent>
  </parents>
  <author>
    <name>Darcy Laycock</name>
    <email>sutto@sutto.net</email>
  </author>
  <url>http://github.com/Sutto/rubyflow/commit/c7b6f3ec7657abb0d0adfc120151effe7c818c07</url>
  <id>c7b6f3ec7657abb0d0adfc120151effe7c818c07</id>
  <committed-date>2008-08-08T01:27:39-07:00</committed-date>
  <authored-date>2008-08-08T01:27:39-07:00</authored-date>
  <message>Redid safe and also removed odd / even rows - the gray ruins the whole flow of it.</message>
  <tree>1b93a84c285ecd36902855318e9c5f7e04c75fc3</tree>
  <committer>
    <name>Darcy Laycock</name>
    <email>sutto@sutto.net</email>
  </committer>
</commit>
