I have a string as below
<p> Hello World, this is StackOverflow's question details page</p>
I want to extract text from above HTML as Hello World, this is StackOverflow's question details page
notice that I want to remove the
as well.
How we can achieve this in PHP, I tried few functions, strip_tags, html_entity_decode etc, but all are failing in some conditions.
Please help, Thanks!
Edited my code which I am trying is as below, but its not working :( It leaves the
and '
this type of characters.
$TMP_DESCR = trim(strip_tags($rs['description']));