fix stripping of html in conditional replacement

This commit is contained in:
Damien Elmes 2018-09-13 14:38:18 +10:00
parent d1c1bdd2f1
commit 10068e1009

View file

@ -97,6 +97,8 @@ class Template:
replacer = ''
inverted = section[2] == "^"
if val:
val = stripHTMLMedia(val).strip()
if (val and not inverted) or (not val and inverted):
replacer = inner