if attr.lower() == "text":
                    try:
                        content = connector.join([make_ascii(x).strip() for x in val.itertext()])
                    except Exception:
                        content = default