use HTMLEntities to decode text