My string is like below,
$string = "<p><strong>Property Name :</strong> <span class="getvariable" id="get_variable-89" name="get_variable">[[seeking_property_name]]</span></p>";
I have tried to decode it as below,
echo html_entity_decode($string);
and as,
echo html_entity_decode($string, ENT_COMPAT);
and as,
echo html_entity_decode($string, ENT_COMPAT, 'UTF-8');
But it is not working.
The result should be,
<p><strong>Property Name :</strong> <span class="getvariable" id="get_variable-89" name="get_variable">[[seeking_property_name]]</span></p>
can you tell me what is issue here?
I found a solution:
htmlspecialchars_decode(html_entity_decode($string, ENT_QUOTES))
it is working for me!