str_replace替换函数

function Quote_replaces($quote){
	$quote = str_replace('{quote}','<div class="decmt-box">',$quote);
	$quote = str_replace('{title}','<div class="decmt-title"><span class="username">',$quote);
	$quote = str_replace('{/title}','</span></div>',$quote);
	$quote = str_replace('&lt;br/&gt;','<br>',$quote);
             $quote = str_replace('&lt;', '<', $quote);
	$quote = str_replace('&gt;', '>', $quote);
	$quote = str_replace('{content}','<div class="decmt-content">',$quote);
	$quote = str_replace('{/content}','</div>',$quote);
	$quote = str_replace('{/quote}','</div>',$quote);
//	echo $quote;
  return $quote;
}

Leave a Reply

(will not be published)