PHP to Display JSON/HTML Return -


so i'm using php display data api outputs json. 1 of json data fields has output includes html used format text. problem how use php display json have returned data html in render html.

here's php...

echo "description:".$results['description']."</br>"; 

the ['description'] field, returns information such as..

<p>this example of returned description.<br> includes html.</p> 

so how break out of php display return data's html?

decode html.

read php html_entity_decode()

then can

echo "description:".html_entity_decode($results['description'])."</br>";


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -