1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

html2haml should pre-escape HTML entities.

This commit is contained in:
Nathan Weizenbaum 2008-08-03 00:05:36 -04:00
parent 2e93d9e85c
commit 1a0d994e3a

View file

@ -29,7 +29,7 @@ module Haml
end
method = @@options[:xhtml] ? Hpricot.method(:XML) : method(:Hpricot)
@template = method.call(template)
@template = method.call(template.gsub('&', '&'))
end
end