diff --git a/mwparserfromhell/nodes/text.py b/mwparserfromhell/nodes/text.py index 06e5144..60ba847 100644 --- a/mwparserfromhell/nodes/text.py +++ b/mwparserfromhell/nodes/text.py @@ -39,6 +39,9 @@ class Text(Node): def __strip__(self, normalize, collapse): return self + def __showtree__(self, write, get, mark): + write(str(self).encode("unicode_escape").decode("utf8")) + @property def value(self): """The actual text itself."""