im trying to use Strip_tags and nl2br on the content which i echo out from the database. However, strip_tags doesnt work but nl2br does. What i want to do is to remove all the html or php tags inside the content if it is possible. By the way im using php 5.2.17 . Please help.
Output
Content:
<p><span style="color: #00ff00;">This is a new Page<br /><br />This is a new sentence</span></p>
Content
Content:<br />
<div class="view-content">
<?php echo
strip_tags(htmlentities($current_page["content"])); ?>
</div>