'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):

    if isText:
        text = subnode.text
        subnode.text = None
    else:
        text = subnode.tail
        subnode.tail = None
    childResult = self.__processPlaceholders(text, subnode, isText)
    if ((not isText) and (node is not subnode)):
        pos = (list(node).index(subnode) + 1)
    else:
        pos = 0
    childResult.reverse()
    for newChild in childResult:
        node.insert(pos, newChild)
