temp fix for escaped entities not being replaced