显示&而不是&

Mam*_*dou 1 html php special-characters html-entities

我在数据库中保存了以下字符串:" cocotte & kekette".
当我查询它并使用PHP在我的网页中显示时,cocotte & kekette会显示字符串" ".
谁能告诉我如何解决这个问题?

Dai*_*Dai 6

试试

html_entity_decode($string);
Run Code Online (Sandbox Code Playgroud)

要么

mb_convert_encoding($string, "HTML-ENTITIES", "UTF-8");
Run Code Online (Sandbox Code Playgroud)