function clear_html_label($html)
{
$search = array ("''si", "'<[/!]*?[^<>]*?> 'si", "'([rn])[s]+'", "'&(quot|#34);'i", "'&(amp|#38);'i", "'&( lt|#60);'i", "'&(gt|#62);'i", "'&(nbsp|#160);'i", "'&(iexcl|#161);'i ", "'&(cent|#162);'i", "'&(pound|#163);'i", "'&(copy|#169);'i", "'(d+ );'e");
$replace = array ("", "", "1", """, "&", "<", ">", " ", chr(161) , chr(162), chr(163), chr(169), "chr(1)");
return preg_replace($search, $replace, $html);
}
//Example application
$string ='aaa
Latest Articles by Author
-
2025-02-26 03:58:14
-
2025-02-26 03:38:10
-
2025-02-26 03:17:10
-
2025-02-26 02:49:09
-
2025-02-26 01:08:13
-
2025-02-26 00:46:10
-
2025-02-25 23:42:08
-
2025-02-25 22:50:13
-
2025-02-25 21:54:11
-
2025-02-25 20:45:11
Latest Issues
-
2025-03-14 11:44:41
-
2025-03-14 11:42:06
-
2025-03-14 11:06:10
-
2025-03-13 12:08:12
-
2025-03-12 17:09:24