S
Soruman
Guest
Hi,
I am going to fetch the contents of a url and then use php's built in strip_tags function to have plain text version of the page. The problem is if the html is not valid (contains unclosed tag, broken etc.) strip_tags doesn't work as expected. Therefore I have to format and correct the html before processing it with strip_tags but how?
Thank you in advance...
I am going to fetch the contents of a url and then use php's built in strip_tags function to have plain text version of the page. The problem is if the html is not valid (contains unclosed tag, broken etc.) strip_tags doesn't work as expected. Therefore I have to format and correct the html before processing it with strip_tags but how?
Thank you in advance...