This is logically what I want to achieve:
$variable = include "file.html";
strip_tags($variable);
- Is it possible
- If not, how can I run the strip_tags function on the contents of a file that I want to include. I just want to get the text contents of the file, not the html data.
Hope I make sense.
What you are willing to do is possible using
file_get_contents(http://php.net/manual/en/function.file-get-contents.php) instead ofinclude.Example: