A web service that I am accessing send the following response...
<strong>result</strong>
How can I strip the string of these encoded tags?
A web service that I am accessing send the following response...
<strong>result</strong>
How can I strip the string of these encoded tags?
<?php
$str = '<strong>result</strong>';
echo strip_tags(html_entity_decode($str));
© 2022 - 2024 — McMap. All rights reserved.
htmlspecialchars
andhtml_entity_decode
in conjunction. I missed thestrip_tags
– Swastika