i have the below piece of code which renders data into xml format .

$credit = htmlentities( $credit, ENT_COMPAT | ENT_XML1 );

it has been working well for special characters but if i have this block of text “


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , ,

Wordpress related questions and answers: