if url is absent, use contents of a tag