Skip to content

Commit e33189b

Browse files
author
Frank Liu
committed
Added setAutoEscape in copyGlobalContext()
1 parent 512286e commit e33189b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/com/hubspot/jinjava/Jinjava.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ private Context copyGlobalContext() {
326326
globalContext.getAllFilters().forEach(context::registerFilter);
327327
globalContext.getAllFunctions().forEach(context::registerFunction);
328328
globalContext.getAllTags().forEach(context::registerTag);
329+
context.setAutoEscape(globalContext.isAutoEscape());
329330
context.setDynamicVariableResolver(globalContext.getDynamicVariableResolver());
330331
return context;
331332
}

0 commit comments

Comments
 (0)