replace meta with hidden spans