massive update for markup_beauty to support html templates embedded as html attributes