Any more ideas what should I add to this function?
I want allow users to change font color, font family, font size, font style, insert links.
function strip_unsafe($string)
{
$unsafe=array(
'/<iframe(.*?)<\/iframe>/is',
'/<title(.*?)<\/title>/is',
'/<frame(.*?)<\/frame>/is',
'/<frameset(.*?)<\/frameset>/is',
'/<object(.*?)<\/object>/is',
'/<script(.*?)<\/script>/is',
'/<embed(.*?)<\/embed>/is',
'/<applet(.*?)<\/applet>/is',
'/<meta(.*?)>/is',
'/<!doctype(.*?)>/is',
'/<link(.*?)>/is',
'/<body(.*?)>/is',
'/<\/body>/is',
'/<style(.*?)>/is',
'/<\/style>/is',
'/<head(.*?)>/is',
'/<\/head>/is',
'/onload="(.*?)"/is',
'/onunload="(.*?)"/is',
'/<img(.*?)>/is',
'/<html(.*?)>/is',
'/<\/html>/is');
$string=preg_replace($unsafe, "", $string);