Removing HTML Tags from String Variables using the PHP 'strip_tags()' Function

Category: Software and Systems Engineering
Author: Sean O'Donnell
Thu, Feb. 20th, 2003 @ 2:20:22 (MST)

This example shows how to strip html tags from a string variable.

<?php
$str_example 
'<p><b>This is a Test</b></p>';
print 
strip_tags($str_example);
?>

The output should appear as so:

This is a Test

Copyleft (<) 1998-2019 www.seanodonnell.com