module Flowcation::Render

Public Class Methods

sanitize(s) click to toggle source
# File lib/flowcation/render.rb, line 3
def self.sanitize(s)
  s.
  gsub("%>", "%>").
  gsub("&lt;%", "<%").
  gsub("\r\n", "\n").
  gsub("%20", " ").
  gsub("&amp;", "&").
  gsub("=&gt;", "=>").
  gsub("-&gt;", "->").
  gsub("&gt;", ">").
  gsub("&lt;", "<")
end