mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-30 00:00:43 -04:00
Use HTML.escape to escape XML
This commit is contained in:
-10
@@ -153,16 +153,6 @@ def ctime(file_path : String) : Time
|
||||
{% end %}
|
||||
end
|
||||
|
||||
def escape_xml(str)
|
||||
str.gsub({
|
||||
'>' => ">",
|
||||
'<' => "<",
|
||||
'"' => """,
|
||||
'\'' => "'",
|
||||
'&' => "&",
|
||||
})
|
||||
end
|
||||
|
||||
def register_mime_types
|
||||
{
|
||||
".zip" => "application/zip",
|
||||
|
||||
Reference in New Issue
Block a user