Using CGI.escapeHTML instead of manually replacing a few characters for xml_escape
This commit is contained in:
parent
6968346703
commit
35a467117e
|
@ -18,7 +18,7 @@ module Jekyll
|
||||||
end
|
end
|
||||||
|
|
||||||
def xml_escape(input)
|
def xml_escape(input)
|
||||||
input.gsub("&", "&").gsub("<", "<").gsub(">", ">")
|
CGI.escapeHTML(input)
|
||||||
end
|
end
|
||||||
|
|
||||||
def cgi_escape(input)
|
def cgi_escape(input)
|
||||||
|
|
Loading…
Reference in New Issue