1StopCoders

Code Examples and Industry News

Using PHP Function Strip_Tags to Remove HTML

PHP - Created by Casey Martin: 2014-05-10 17:12:00

Use strip_tags() to remove html from a string.

$htmlvariable = "Is this bold?";
echo strip_tags($htmlvariable);