Skip to content

Commit 12a9336

Browse files
authored
Merge pull request #700 from frankliu197/propagate-global-autoescape
Propogate Global AutoEscape
2 parents 9f06136 + e33189b commit 12a9336

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)