Skip to content

Instantly share code, notes, and snippets.

Created July 17, 2016 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/a9ea68a5d19d4f9a093d7829a3c29041 to your computer and use it in GitHub Desktop.
Save anonymous/a9ea68a5d19d4f9a093d7829a3c29041 to your computer and use it in GitHub Desktop.
def normalize(str)
normalized = ""
str.each_char do |x|
normalized << x
end
normalized
end
html2 = "<b>{{ cms:page:content:rich_text }}</b>"
html = normalize File.open("./layouts/#{file}/#{file}.html", "rb").read
puts html == html2 # prints false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment