織夢二次開發,織夢采集到HTML實體后出現亂碼保存不全,主要是因為這個字符“&”造成的。
解決辦法就是把HTML實體轉為字符,使用html_entity_decode()函數。
想再轉為HTML實體,那使用PHP的htmlentities()函數。
修改方法如下:
1、找到文件:/include/dedecollection.class.php
2、搜索:addslashes($v['title']),替換為:addslashes(html_entity_decode($v['title']))
注:一共有2處,在1035行(上下)和1118行(上下)