The PHP strip_tags() function removes HTML and PHP tags from a string. Here are some examples:
The PHP strip_tags() function removes HTML and PHP tags from a string. Here are some examples:
$content = '<h1>Lorem Ipsum</h1> <p><a href="#">Lorem ipsum dolor sit amet... </a><p>';
$content_without_tags = strip_tags($content);
$content = '<h1>Lorem Ipsum</h1> <p><a href="#">Lorem ipsum dolor sit amet... </a><p>';
$content_without_tags = strip_tags($content, '<p><a>');
$content = $row["content"];
$content_without_tags = strip_tags($content);