mv tag text with attr to templates