mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-30 17:28:29 -05:00
entitify ampersands to prevent malformed unescaping output
This commit is contained in:
@@ -14,7 +14,7 @@ module Jekyll
|
||||
end
|
||||
|
||||
def xml_escape(input)
|
||||
input.gsub("<", "<").gsub(">", ">")
|
||||
input.gsub("&", "&").gsub("<", "<").gsub(">", ">")
|
||||
end
|
||||
|
||||
def number_of_words(input)
|
||||
@@ -36,4 +36,4 @@ module Jekyll
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user