Fri, 17 May 2024


How to get a line from file pointer and strip the HTML tags in single instruction?

By: Anton, NetArt Media
Thu, 16 July 2020

In PHP there is a function very similar to fgets which is not very well known, the fgetss function. The only difference between fgetss and fgets is that fgetss strip all the HTML tags from the given line.

fgetss(int fp, int length)


Category: PHP Examples
Share this post:



See All Scripts






Subscribe for our newsletter

Receive the latest blog posts direct in your mailbox