Name
strip_tags
Synopsis
string strip_tags(stringstring
[, stringallowed
])
Removes PHP and HTML tags from string
and
returns the result. The allowed
parameter
can be specified to not remove certain tags. The string should be a
comma-separated list of the tags to ignore; for example,
"<b>,<i>"
will leave bold and italics
tags.
Get Programming PHP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.