lib/nanoc/helpers/html_escape.rb in nanoc-4.12.7 vs lib/nanoc/helpers/html_escape.rb in nanoc-4.12.8
- old
+ new
@@ -27,9 +27,10 @@
string
.gsub('&', '&')
.gsub('<', '<')
.gsub('>', '>')
.gsub('"', '"')
+ .gsub("'", ''')
else
raise 'The #html_escape or #h function needs either a ' \
'string or a block to HTML-escape, but neither a string nor a block was given'
end
end