...
$text = htmlspecialchars($text);
$text = nl2br($text);
$text = str_replace("[u]","<u>",$text);
$text = str_replace("[font red]","<font color='red'>",$text); //проблема
$text = str_replace("[img]","<img src='images/02.jpg' width='50' style='float:left';>",$text); //проблема
$text = str_replace("[U]","<u>",$text);
$text = str_replace("[h1]","<h1>",$text);
$text = str_replace("[h2]","<h2>",$text);
$text = str_replace("[h3]","<h3>",$text);
$text = str_replace("[h4]","<h4>",$text);
$text = str_replace("[h5]","<h5>",$text);
$text = str_replace("[/h1]","</h1>",$text);
$text = str_replace("[/h2]","</h2>",$text);
$text = str_replace("[/h3]","</h3>",$text);
$text = str_replace("[/h4]","</h4>",$text);
$text = str_replace("[/h5]","</h5>",$text);
$text = str_replace("[i]","<i>",$text);
$text = str_replace("[hr]","<hr>",$text);
$text = str_replace("[I]","<i>",$text);
$text = str_replace("[b]","<B>",$text);
$text = str_replace("[B]","<B>",$text);
...
|