echo "</pre>\n"; ?> <h2>Inspekt::noTags($d)</h2> <?php $newd = Inspekt::noTags($d); echo "<pre>"; var_dump($newd); echo "</pre>\n"; ?> <h2>Inspekt::noTagsOrSpecial($d)</h2> <?php $newd = Inspekt::noTagsOrSpecial($d); echo "<pre>"; var_dump($newd); echo "</pre>\n"; ?> <h2>Inspekt::getDigits($d)</h2> <?php $newd = Inspekt::getDigits($d); echo "<pre>"; var_dump($newd); echo "</pre>\n"; ?>
/** * What might look like blank spaces below are mostly low ASCII chars */ public function testNoTagsOrSpecial() { $input = ' <SCRIPT<strong>>alert(\'foobar\');<</strong>/SCRIPT>'; $expect = '    alert('foobar');'; $this->assertSame($expect, Inspekt::noTagsOrSpecial($input)); }