def __processElementText(self, node, subnode, isText=True):
    "\n        Process placeholders in Element.text or Element.tail\n        of Elements popped from self.stashed_nodes.\n\n        Keywords arguments:\n\n        * node: parent node\n        * subnode: processing node\n        * isText: bool variable, True - it's text, False - it's tail\n\n        Returns: None\n\n        "
    if isText:
        text = subnode.text
        subnode.text = None
    else:
        text = subnode.tail
        subnode.tail = None
    childResult = self.__processPlaceholders(text, subnode)
    if ((not isText) and (node is not subnode)):
        pos = node.getchildren().index(subnode)
        node.remove(subnode)
    else:
        pos = 0
    childResult.reverse()
    for newChild in childResult:
        node.insert(pos, newChild)
Process placeholders in Element.text or Element.tail
of Elements popped from self.stashed_nodes.

Keywords arguments:

* node: parent node
* subnode: processing node
* isText: bool variable, True - it's text, False - it's tail

Returns: None
def __processElementText(self, node, subnode, isText=True):
    "\n        Process placeholders in Element.text or Element.tail\n        of Elements popped from self.stashed_nodes.\n\n        Keywords arguments:\n\n        * node: parent node\n        * subnode: processing node\n        * isText: bool variable, True - it's text, False - it's tail\n\n        Returns: None\n\n        "
    if isText:
        text = subnode.text
        subnode.text = None
    else:
        text = subnode.tail
        subnode.tail = None
    childResult = self.__processPlaceholders(text, subnode)
    if ((not isText) and (node is not subnode)):
        pos = node.getchildren().index(subnode)
        node.remove(subnode)
    else:
        pos = 0
    childResult.reverse()
    for newChild in childResult:
        node.insert(pos, newChild)