from jinja.exceptions import FilterArgumentError, SecurityException
-_striptags_re = re.compile(r'(<!--.*?-->|<[^>]+>)')
+_striptags_re = re.compile(r'(<!--.*?-->|<[^>]*>)')
def stringfilter(f):
op = self.stream.current.type
self.stream.next()
ops.append([op, self.parse_add_expression()])
- lineno = self.stream.lineno
elif self.stream.current.type == 'not' and \
self.stream.look().type == 'in':
self.stream.skip(2)
break
if not ops:
return expr
- return nodes.CompareExpression(expr, ops)
+ return nodes.CompareExpression(expr, ops, lineno, self.filename)
def parse_add_expression(self):
"""