[英]What is the correct way to decode "&Lowbar;" into "_"?
I have tried using html_entity_decode but it didn't work.我曾尝试使用 html_entity_decode 但它没有用。
What is the correct function to use it to decode it?使用它来解码它的正确功能是什么?
You can simply use ENT_HTML5
flag with html_entity_decode :你可以简单地使用ENT_HTML5
国旗html_entity_decode :
echo html_entity_decode ('_', ENT_HTML5);
Which print:哪个打印:
_
See PHP Manual: https://www.php.net/manual/en/function.html-entity-decode.php参见 PHP 手册: https : //www.php.net/manual/en/function.html-entity-decode.php
I have tried using html_entity_decode but it didn't work.我尝试使用html_entity_decode,但没有用。
What is the correct function to use it to decode it?用它解码的正确函数是什么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.