Ampersands need to be escaped.

This commit is contained in:
Brian McKenna 2009-01-20 11:35:45 +10:00
parent 94c06d0100
commit d397b762da
1 changed files with 1 additions and 1 deletions

View File

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