convert input to string before xml escaping

This commit is contained in:
Ben Balter
2014-04-18 16:54:48 -04:00
parent 571fb95cc1
commit 6f0bebdfda
2 changed files with 5 additions and 1 deletions

View File

@@ -83,7 +83,7 @@ module Jekyll
#
# Returns the escaped String.
def xml_escape(input)
CGI.escapeHTML(input)
CGI.escapeHTML(input.to_s)
end
# CGI escape a string for use in a URL. Replaces any special characters