remove declarations for tag text