MySQL

Strip Tags

Strip HTML Tags
<?php
// Replace the content of the variable below with a row from the database:
$demo_text = '<h1>Lorem Ipsum</h1> <p><a href="#">Lorem ipsum dolor sit amet... </a><p>';
// Replace all tags:
echo strip_tags($demo_text);
// allow tags <p> and <a>
echo strip_tags($demo_text, '<p><a>');
?>