PHP html_entity_decode是否支持HTML5實(shí)體

PHP
小樊
84
2024-07-12 03:57:25

是的,PHP的html_entity_decode函數(shù)支持HTML5實(shí)體。HTML5引入了許多新的實(shí)體,如-(軟連字符)、?(零寬不換行符)等,html_entity_decode函數(shù)可以正確地解碼這些實(shí)體。因此,無論是傳統(tǒng)的HTML4實(shí)體還是HTML5實(shí)體,html_entity_decode函數(shù)都可以正確地解碼。

0