2014-01-16 30 views
0

내가 일반 텍스트로 내 문자열을 변환 할하지만 난 그이 작업을 수행 할 수 없습니다로를 htmlentities를 변환하는 방법... 일반 텍스트

내 문자열 :

Keen'v feat Lorelei B - la vie du bon coté (clip officiel) 

내가 가진, 변환하기 htmlspecialchars_decode() 함수를 사용하지만, 나는 이상한 출력이 있습니다

Keen'v feat Lorelei B - la vie du bon coté (clip officiel) 

당신에게이 문제를 해결하는 아이디어가 있습니까?

감사합니다. 안녕하십니까,

답변

0

htmlspecialchars_decode()에 반대하는 html_entity_decode()을 찾고 계신 것 같아요.

$encoding 매개 변수와 같이 htmlentities()에 인수를 전달한 경우 동일한 값을 html_entity_decode()에도 전달해야합니다.