pub fn default_auto_escape_callback(name: &str) -> AutoEscape
Expand description

The default logic for auto escaping based on file extension.

  • Html: .html, .htm, .xml
  • Json: .json, .json5, .js, .yaml, .yml
  • None: all others