/PHP-7.4/ext/standard/tests/strings/ |
H A D | strip_tags_array.phpt | 2 Test strip_tags() function : basic functionality - with array argument 7 var_dump(strip_tags($string)); 8 var_dump(strip_tags($string, ['a'])); 9 var_dump(strip_tags($string, ['p', 'a'])); 10 var_dump(strip_tags($string, [])); 11 var_dump(strip_tags($string, ['p' => true, 'a' => false])); 12 var_dump(strip_tags($string, ['p' => 'a'])); 15 var_dump(strip_tags($string, [0])); 16 var_dump(strip_tags($string, [1])); 17 var_dump(strip_tags($string, [1, 2])); [all …]
|
H A D | strip_tags.phpt | 2 strip_tags() function 5 echo strip_tags('NEAT <? cool < blah ?> STUFF'); 7 echo strip_tags('NEAT <? cool > blah ?> STUFF'); 9 echo strip_tags('NEAT <!-- cool < blah --> STUFF'); 11 echo strip_tags('NEAT <!-- cool > blah --> STUFF'); 13 echo strip_tags('NEAT <? echo \"\\\"\"?> STUFF'); 15 echo strip_tags('NEAT <? echo \'\\\'\'?> STUFF'); 17 echo strip_tags('TESTS ?!!?!?!!!?!!');
|
H A D | bug46578.phpt | 2 Bug #46578 (strip_tags() does not honor end-of-comment when it encounters a single quote) 6 var_dump(strip_tags('<!-- testing I\'ve been to mars -->foobar')); 8 var_dump(strip_tags('<a alt="foobar">foo<!-- foo! --></a>bar')); 10 var_dump(strip_tags('<a alt="foobar"/>foo<?= foo! /* <!-- "cool" --> */ ?>bar')); 12 var_dump(strip_tags('< ax')); 14 var_dump(strip_tags('<! a>')); 16 var_dump(strip_tags('<? ax'));
|
H A D | bug78003.phpt | 2 Bug #78003 (strip_tags output change since PHP 7.3) 6 strip_tags('<foo<>bar>'), 7 strip_tags('<foo<!>bar>'), 8 strip_tags('<foo<?>bar>')
|
H A D | strip_tags_variation11.phpt | 2 Test strip_tags() function : obscure values within attributes 6 echo "*** Testing strip_tags() : obscure functionality ***\n"; 17 // Calling strip_tags() with default arguments 18 // loop through the $string_array to test strip_tags on various inputs 23 var_dump( strip_tags($string) ); 30 *** Testing strip_tags() : obscure functionality ***
|
H A D | bug70720.phpt | 2 Bug #70720 (strip_tags() doesnt handle "xml" correctly) 5 var_dump(strip_tags('<?php $dom->test(); ?> this is a test')); 6 var_dump(strip_tags('<?php $xml->test(); ?> this is a test')); 7 var_dump(strip_tags('<?xml $xml->test(); ?> this is a test')); 10 var_dump(strip_tags("<span class=sf-dump-> this is a test</span>"));
|
H A D | strip_tags_variation6.phpt | 2 Test strip_tags() function : usage variations - binary safe checking 5 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 11 * testing whether strip_tags() is binary safe or not 14 echo "*** Testing strip_tags() : usage variations ***\n"; 24 //loop through the strings array to check if strip_tags() is binary safe 29 var_dump( strip_tags($value) ); 36 *** Testing strip_tags() : usage variations ***
|
H A D | strip_tags_variation8.phpt | 2 Test strip_tags() function : usage variations - valid value for 'str' and invalid values for 'allow… 5 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 11 …* testing functionality of strip_tags() by giving valid value for $str and invalid values for $all… 14 echo "*** Testing strip_tags() : usage variations ***\n"; 29 //loop through the various elements of strings array to test strip_tags() functionality 34 var_dump( strip_tags($strings, $string_value) ); 40 *** Testing strip_tags() : usage variations ***
|
H A D | bug53319.phpt | 7 var_dump(strip_tags($str, '<input>')); 8 var_dump(strip_tags($str, '<br><input>') === $str); 9 var_dump(strip_tags($str)); 10 var_dump(strip_tags('<a/b>', '<a>'));
|
H A D | strip_tags_basic1.phpt | 2 Test strip_tags() function : basic functionality - with default arguments 5 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 10 echo "*** Testing strip_tags() : basic functionality ***\n"; 31 // Calling strip_tags() with default arguments 32 // loop through the $string_array to test strip_tags on various inputs 37 var_dump( strip_tags($string) ); 44 *** Testing strip_tags() : basic functionality ***
|
H A D | strip_tags_basic2.phpt | 2 Test strip_tags() function : basic functionality - with all arguments 5 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 10 echo "*** Testing strip_tags() : basic functionality ***\n"; 12 // Calling strip_tags() with all possible arguments 27 // loop through the $string with various $allowed_tags_array to test strip_tags 33 var_dump( strip_tags($string, $tags) ); 40 *** Testing strip_tags() : basic functionality ***
|
H A D | bug50847.phpt | 2 Bug #50847 (strip_tags() removes all tags greater than 1023 bytes long) 6 var_dump(strip_tags($var, "<param>"), strip_tags($var));
|
H A D | bug23650.phpt | 2 Bug #23650 (strip_tags() removes hyphens) 15 echo strip_tags($str); 16 echo strip_tags($str, '<abc>');
|
H A D | strip_tags_variation9.phpt | 2 Test strip_tags() function : usage variations - double quoted strings 5 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 11 * testing functionality of strip_tags() by giving double quoted strings as values for $str argument 14 echo "*** Testing strip_tags() : usage variations ***\n"; 27 //loop through the various elements of strings array to test strip_tags() functionality 32 var_dump( strip_tags($string_value, $quotes) ); 38 *** Testing strip_tags() : usage variations ***
|
H A D | bug21744.phpt | 2 Bug #21744 (strip_tags misses exclamation marks in alt text) 10 print strip_tags($test, ''); 11 print strip_tags($test, '<a>');
|
H A D | strip_tags_variation10.phpt | 2 Test strip_tags() function : usage variations - single quoted strings 5 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 11 * testing functionality of strip_tags() by giving single quoted strings as values for $str argument 14 echo "*** Testing strip_tags() : usage variations ***\n"; 28 //loop through the various elements of strings array to test strip_tags() functionality 33 var_dump( strip_tags($string_value, $quotes) ); 40 *** Testing strip_tags() : usage variations ***
|
H A D | strip_tags_variation4.phpt | 2 Test strip_tags() function : usage variations - invalid values for 'str' and valid 'allowable_tags' 5 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 11 …* testing functionality of strip_tags() by giving invalid values for $str and valid values for $al… 14 echo "*** Testing strip_tags() : usage variations ***\n"; 35 //loop through the various elements of strings array to test strip_tags() functionality 40 var_dump( strip_tags($string_value, $quotes) ); 47 *** Testing strip_tags() : usage variations ***
|
H A D | strip_tags_variation7.phpt | 2 Test strip_tags() function : usage variations - invalid values for 'str' and 'allowable_tags' 5 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 11 …* testing functionality of strip_tags() by giving invalid values for $str and $allowable_tags argu… 14 echo "*** Testing strip_tags() : usage variations ***\n"; 33 //loop through the various elements of strings array to test strip_tags() functionality 38 var_dump( strip_tags($string_value, $quotes) ); 45 *** Testing strip_tags() : usage variations ***
|
H A D | strip_tags_variation5.phpt | 2 Test strip_tags() function : usage variations - heredoc strings 5 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 12 * testing functionality of strip_tags() by giving heredoc strings as values for $str argument 15 echo "*** Testing strip_tags() : usage variations ***\n"; 68 // loop through $res_heredoc_strings element and check the working on strip_tags() 72 var_dump( strip_tags($res_heredoc_strings[$index], $quotes) ); 79 *** Testing strip_tags() : usage variations ***
|
H A D | strip_tags_variation2.phpt | 2 Test strip_tags() function : usage variations - unexpected values for 'allowable_tags' 5 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 11 * testing functionality of strip_tags() by giving unexpected values for $allowable_tags argument 14 echo "*** Testing strip_tags() : usage variations ***\n"; 80 var_dump( strip_tags($string, $value) ); 87 *** Testing strip_tags() : usage variations ***
|
H A D | bug45485.phpt | 2 Bug #45485 (strip_tags and <?XML tag) 10 $s = strip_tags($s); 17 $s = strip_tags($s);
|
H A D | bug78346.phpt | 2 Bug #78346 (strip_tags no longer handling nested php tags) 6 var_dump(strip_tags($str));
|
H A D | bug78814.phpt | 2 Bug #78814 (strip_tags allows / in tag name => whitelist bypass) 5 echo strip_tags("<s/trong>b</strong>", "<strong>");
|
/PHP-7.4/ext/standard/tests/filters/ |
H A D | strip_tags_filter.phpt | 2 string.strip_tags filter 6 stream_filter_append($fp, 'string.strip_tags'); 11 stream_filter_append($fp, 'string.strip_tags', STREAM_FILTER_WRITE, "<b>"); 16 stream_filter_append($fp, 'string.strip_tags', STREAM_FILTER_WRITE, ["b"]); 22 Deprecated: stream_filter_append(): The string.strip_tags filter is deprecated in %s on line %d 25 Deprecated: stream_filter_append(): The string.strip_tags filter is deprecated in %s on line %d 28 Deprecated: stream_filter_append(): The string.strip_tags filter is deprecated in %s on line %d
|
/PHP-7.4/Zend/tests/ |
H A D | bug61165.phpt | 2 Bug #61165 (Segfault - strip_tags()) 20 strip_tags($t); 21 strip_tags(new T);
|