|
@@ -70,7 +70,7 @@ class Template(Node): |
|
|
name, value = parse_anything(name), parse_anything(value) |
|
|
name, value = parse_anything(name), parse_anything(value) |
|
|
surface_text = value.filter_text(recursive=False) |
|
|
surface_text = value.filter_text(recursive=False) |
|
|
for node in surface_text: |
|
|
for node in surface_text: |
|
|
node.replace("|", "|") # INSERT AS HTMLEntity INSTEAD OF RAW TEXT |
|
|
|
|
|
|
|
|
value.replace(node, node.replace("|", "|")) |
|
|
|
|
|
|
|
|
if showkey is None: |
|
|
if showkey is None: |
|
|
if any(["=" in node for node in surface_text]): |
|
|
if any(["=" in node for node in surface_text]): |
|
@@ -84,7 +84,7 @@ class Template(Node): |
|
|
showkey = True |
|
|
showkey = True |
|
|
elif not showkey: |
|
|
elif not showkey: |
|
|
for node in surface_text: |
|
|
for node in surface_text: |
|
|
node.replace("=", "|") # INSERT AS HTMLEntity INSTEAD OF RAW TEXT |
|
|
|
|
|
|
|
|
value.replace(node, node.replace("=", "|")) |
|
|
|
|
|
|
|
|
if self.has_param(name): |
|
|
if self.has_param(name): |
|
|
self.remove_param(name, keep_field=True) |
|
|
self.remove_param(name, keep_field=True) |
|
|