PHP string strip_tags() FunctionPHP string_tags() is predefine string function of PHP. It is used to strip HTML and PHP tags from a string or strips a string from HTML, XML and PHP tags. Note 1: This function is binary safe. It return a string with all NULL bytes.Note 2: HTML comment and PHP tags are also striped. It is hardcoded and can be changed with allowable_tags.Syntax:
Example 1Output: Hello PHP! Note 1: The strip_tags() function is strips a string from HTML, XML, and PHP tags. In this example, the <b> tag gets stripped.Example 2Output: Hello Javatpoint! Example 3Output: Test paragraph. Javatpoint Test paragraph. Javatpoint References: http://www.php.net/manual/en/function.strip-tags.php Next TopicPHP String |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India