Category:php functions

StripTags() php function

Striptags() is a php function that literally strips HTML tags out of files that are streamed in to php with a function like file_get_contents()


<?php


$x = file_get_contents(''test_file.html'); // test_file has <h1> test me now </h1>

$x = strip_tags($x)

echo $x;

// Will output: test me now



?>



Author: D.Shaun Morgan