Which one of the following function operates similarly to fgets(), except that it also strips any HTML and PHP tags form the input?
fgetss()
Correct:
fgetss()
Explanation:
fgetss() — Gets line from file pointer and strip HTML tags
Warning
This function has been DEPRECATED as of PHP 7.3.0. Relying on this function is highly discouraged.
Description
fgetss ( resource $handle [, int $length [, string $allowable_tags ]] ) : string
Identical to fgets(), except that fgetss() attempts to strip any NUL bytes, HTML and PHP tags from the text it reads.