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:
parent
2e93d9e85c
commit
1a0d994e3a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue