fix replacing of font tags with spans