Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想存储以下内容:
$str= "• This is a bullet point";
在我的数据库中作为一个实际的要点而不是它的 html_entity 值。
我试过了:
$new_str = html_entity_decode($str);
在我将它存储在数据库中之前,这似乎只适用于某些 html_entities,例如,它适用于 # 或 & 但不适用于
有什么想法我该怎么做?..关于J
$new_str = mb_convert_encoding($str, 'UTF-8', 'HTML-ENTITIES');