Enable autoescape security feature for processing markdown data in descriptions from the BPMN Diagrams
This commit is contained in:
parent
1e8a095760
commit
c6eb2d937d
|
@ -73,7 +73,7 @@ class Task(object):
|
||||||
def process_documentation(self, documentation):
|
def process_documentation(self, documentation):
|
||||||
'''Runs markdown documentation through the Jinja2 processor to inject data
|
'''Runs markdown documentation through the Jinja2 processor to inject data
|
||||||
create loops, etc...'''
|
create loops, etc...'''
|
||||||
rtemplate = Environment(loader=BaseLoader).from_string(documentation)
|
rtemplate = Environment(autoescape=True, loader=BaseLoader).from_string(documentation)
|
||||||
self.documentation = rtemplate.render(**self.data)
|
self.documentation = rtemplate.render(**self.data)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue