Created
July 17, 2016 16:09
-
-
Save anonymous/a9ea68a5d19d4f9a093d7829a3c29041 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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