1--TEST-- 2Test strip_tags() function : obscure values within attributes 3--FILE-- 4<?php 5 6echo "*** Testing strip_tags() : obscure functionality ***\n"; 7 8// array of arguments 9$string_array = array ( 10 'hello <img title="<"> world', 11 'hello <img title=">"> world', 12 'hello <img title=">_<"> world', 13 "hello <img title='>_<'> world" 14); 15 16 17// Calling strip_tags() with default arguments 18// loop through the $string_array to test strip_tags on various inputs 19$iteration = 1; 20foreach($string_array as $string) 21{ 22 echo "-- Iteration $iteration --\n"; 23 var_dump( strip_tags($string) ); 24 $iteration++; 25} 26 27echo "Done"; 28?> 29--EXPECT-- 30*** Testing strip_tags() : obscure functionality *** 31-- Iteration 1 -- 32string(12) "hello world" 33-- Iteration 2 -- 34string(12) "hello world" 35-- Iteration 3 -- 36string(12) "hello world" 37-- Iteration 4 -- 38string(12) "hello world" 39Done 40