def escapeToXML(text, isattrib = False):
    text = text.replace("&", "&amp;")
    text = text.replace("<", "&lt;")
    text = text.replace(">", "&gt;")
    if isattrib:
        text = text.replace("'", "&apos;")
        text = text.replace("\"", "&quot;")
    return text
Write a string in bold by overstriking.
dataset/ETHPy150Open twisted/nevow/nevow/util.py/escapeToXML--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/vendor/epydoc/docwriter/plaintext.py/PlaintextWriter.bold