Ampersands need to be escaped.

This commit is contained in:
Brian McKenna
2009-01-20 11:35:45 +10:00
parent 94c06d0100
commit d397b762da

View File

@@ -14,7 +14,7 @@ module Jekyll
end
def xml_escape(input)
input.gsub("<", "&lt;").gsub(">", "&gt;")
input.gsub("&", "&amp;").gsub("<", "&lt;").gsub(">", "&gt;")
end
def number_of_words(input)