From 378be4c7f3150e6440993e0bf07235b65fe44870 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Fri, 14 May 2021 20:04:10 +0200 Subject: Rename template filter '|e' to '|escape' to keep in line with Django --- src/template.cpp | 4 ++-- templates/html/htmljssearchindex.tpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/template.cpp b/src/template.cpp index 13ce7ef..a9c5421 100755 --- a/src/template.cpp +++ b/src/template.cpp @@ -1317,7 +1317,7 @@ class FilterUpper //-------------------------------------------------------------------- /** @brief The implementation of the "e" filter */ -class FilterHtmlEscape +class FilterEscape { public: static TemplateVariant apply(const TemplateVariant &v,const TemplateVariant &) @@ -1413,7 +1413,7 @@ static TemplateFilterFactory::AutoRegister fList("list static TemplateFilterFactory::AutoRegister fLower("lower"); static TemplateFilterFactory::AutoRegister fUpper("upper"); static TemplateFilterFactory::AutoRegister fAppend("append"); -static TemplateFilterFactory::AutoRegister fEscape("e"); +static TemplateFilterFactory::AutoRegister fEscape("escape"); static TemplateFilterFactory::AutoRegister fLength("length"); static TemplateFilterFactory::AutoRegister fNoWrap("nowrap"); static TemplateFilterFactory::AutoRegister fFlatten("flatten"); diff --git a/templates/html/htmljssearchindex.tpl b/templates/html/htmljssearchindex.tpl index b23e19e..c963434 100644 --- a/templates/html/htmljssearchindex.tpl +++ b/templates/html/htmljssearchindex.tpl @@ -3,7 +3,7 @@ var searchData = [ {% for group in si.symbolGroups %} ['{{ group.id }}_{{ symbolCount }}',['{{ group.name }}',{% spaceless %}{% for sym in group.symbols %}['{{ sym.relPath }}{{ sym.fileName }}{{ config.HTML_FILE_EXTENSION }}{% if sym.anchor %}#{{ sym.anchor }}{% endif %}', {% if not config.EXT_LINKS_IN_WINDOW %}1{% else %}0{% endif %}, -'{{ sym.scope|nowrap|e }}'] +'{{ sym.scope|nowrap|escape }}'] {% if not forloop.last %},{% endif %} {% endfor %} {% update symbolCount=symbolCount+1 %} -- cgit v0.12