def escape(s):
    """Escape content of strings which will break the api using html entity type escaping"""
    s = s.replace("&", "&amp;")
    s = s.replace("\r\n", "&#10;")
    s = s.replace("\n", "&#10;")
    s = s.replace("\r", "&#10;")
    s = s.replace("(", "&#40;")
    s = s.replace(")", "&#41;")
    s = s.replace(",", "&#44;")
    s = s.replace("§", "&sect;")
    return s