Replace anchors with spans for meaning mentions