Home
last modified time | relevance | path

Searched refs:strip_tags (Results 1 – 25 of 38) sorted by path

12

/PHP-7.4/
H A DNEWS1311 . Fixed bug #78814 (strip_tags allows / in tag name => whitelist bypass).
1705 . Fixed bug #78346 (strip_tags no longer handling nested php tags). (cmb)
1902 . Fixed bug #78346 (strip_tags no longer handling nested php tags). (cmb)
2074 . Fixed bug #78003 (strip_tags output change since PHP 7.3). (cmb)
H A DUPGRADING340 . strip_tags() now also accepts an array of allowed tags: Instead of
341 strip_tags($str, '<a><p>') you can now write strip_tags($str, ['a', 'p']).
/PHP-7.4/Zend/tests/
H A Dbug36513.phpt6 …echo "'".trim(str_replace("&nbsp;", " ", htmlspecialchars_decode(strip_tags(highlight_string($s,1)…
H A Dbug61165.phpt2 Bug #61165 (Segfault - strip_tags())
20 strip_tags($t);
21 strip_tags(new T);
/PHP-7.4/docs/
H A Dinput-filter.md18 simple example all I am doing is calling `strip_tags()` on the data.
/PHP-7.4/ext/mysqli/tests/
H A Dmysqli_pconn_max_links.phpt76 $phpinfo = strip_tags(ob_get_contents());
137 $phpinfo = strip_tags(ob_get_contents());
175 $phpinfo = strip_tags(ob_get_contents());
/PHP-7.4/ext/standard/
H A Dbasic_functions.c2827 PHP_FE(strip_tags, arginfo_strip_tags)
H A Dphp_string.h79 PHP_FUNCTION(strip_tags);
H A Dstring.c4871 PHP_FUNCTION(strip_tags) argument
/PHP-7.4/ext/standard/tests/filters/
H A Dstrip_tags_filter.phpt2 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/ext/standard/tests/strings/
H A Dbug21453.phpt11 var_dump(strip_tags($test));
H A Dbug21744.phpt2 Bug #21744 (strip_tags misses exclamation marks in alt text)
10 print strip_tags($test, '');
11 print strip_tags($test, '<a>');
H A Dbug22008.phpt2 Bug #22008 (strip_tags() eliminates too much)
18 echo trim(strip_tags($html, '<b>'))."\n";
H A Dbug23650.phpt2 Bug #23650 (strip_tags() removes hyphens)
15 echo strip_tags($str);
16 echo strip_tags($str, '<abc>');
H A Dbug40432.phpt2 Bug #40432 (strip_tags() fails with greater than in attribute)
5 echo strip_tags('<span title="test > all">this</span>') . "\n";
H A Dbug40637.phpt2 Bug #40637 (strip_tags() does not handle single quotes correctly)
7 var_dump(strip_tags($html));
H A Dbug40704.phpt2 Bug #40704 (strip_tags() does not handle single quotes correctly)
7 var_dump(strip_tags($html));
H A Dbug45485.phpt2 Bug #45485 (strip_tags and <?XML tag)
10 $s = strip_tags($s);
17 $s = strip_tags($s);
H A Dbug46578.phpt2 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 Dbug50847.phpt2 Bug #50847 (strip_tags() removes all tags greater than 1023 bytes long)
6 var_dump(strip_tags($var, "<param>"), strip_tags($var));
H A Dbug53319.phpt7 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 Dbug70720.phpt2 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 Dbug78003.phpt2 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 Dbug78346.phpt2 Bug #78346 (strip_tags no longer handling nested php tags)
6 var_dump(strip_tags($str));
H A Dbug78814.phpt2 Bug #78814 (strip_tags allows / in tag name => whitelist bypass)
5 echo strip_tags("<s/trong>b</strong>", "<strong>");

Completed in 67 milliseconds

12