def getHtmlText(rng):
    parent = DOM.createElement("span")
    copyContents(rng, parent)
    return DOM.getInnerHTML(parent)
Get the complete html fragment enclosed by this range.  Ensures that all
dataset/ETHPy150Open pyjs/pyjs/pyjswidgets/pyjamas/selection/Range.py/getHtmlText