strip_tags PHP API

A Programming API


<?php $string= strip_tags($row['post_content']); ?>

An Explanation
strip_tags — Strip HTML and PHP tags from a string

string strip_tags ( string $str [, string $allowable_tags ] )

This function tries to return a string with all NUL bytes, HTML and
PHP tags stripped from a given  str. It uses the same tag stripping
state machine as the fgetss() function.


Leave a comment

Your email address will not be published. Required fields are marked *