Gen. partnerAlgotech

PHP function strip_tags()

Strip HTML and PHP tags from a string

|
September 11, 2019

Availability in PHP 4.0

Strip HTML and PHP tags from a string

Parameters

Parameter Data type Default value Note
$str string not Input string.
$allowable_tags string null You can use the second optional parameter to specify tags that should not be removed.

Return values

string

the stripped string.

Other resources

Official documentation for the strip-tags function

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.