hey Massimo,
I worked hard on this because I'm determined for a host of reasons. I have created a base class like "class TBase(TAGGER)" and all of its descendants of that class have the xml(self) method in which a str is returned and is displayed properly on the browser end to matter what tags are within it. ok, that works great.
I have one immutable object descendant of float and not TBase above. I've tried everything I can to render it properly on the browser side, but tags in the str retrieved is always escaped out and shows the tags instead of renders them.
however, is it possible to update under yatl.helpers on line 404 under CAT.xml method to:
return "".join(
s.xml() if hasattr(s, 'xml') else xmlescape(unicodeT(s))
for s in self.children
instead of what is there now:
return "".join(
s.xml() if isinstance(s, TAGGER) else xmlescape(unicodeT(s))
for s in self.children
in the former, it is not escaped and renders properly as long as the xml method is under the object no matter it descend from TAGGER or not. whereas now, in the latter, it has to descend from TAGGER in order to render properly.
therefore, may you please update the CAT.xml method in the former so that it works better for those none TAGGER descendants. I really don't want to go through that multi/dual descendant mess.
thank you in advance, lucas