Location: PHPKode > projects > OneBlog > oneblog/data/bbcode.php
<?php
	
	function parseBBCode2HTML($msg) {
	
	$msg = $msg;
	
    $msg = str_replace("/\n/", "<br/>\n", $msg);
	$msg = str_replace(":P","<img src=\"design/smileys/000.gif\" width=\"15\" height=\"14\" border=\"0\">",$msg); 
	$msg = str_replace(":)","<img src=\"design/smileys/001.gif\" width=\"15\" height=\"14\" border=\"0\">",$msg); 
	$msg = str_replace(";)","<img src=\"design/smileys/002.gif\" width=\"15\" height=\"14\" border=\"0\">",$msg); 
	$msg = str_replace(":(","<img src=\"design/smileys/003.gif\" width=\"15\" height=\"14\" border=\"0\">",$msg); 
	$msg = str_replace("*grr*","<img src=\"design/smileys/004.gif\" width=\"15\" height=\"14\" border=\"0\">",$msg); 
	$msg = str_replace("o_o","<img src=\"design/smileys/005.gif\" width=\"15\" height=\"14\" border=\"0\">",$msg); 
	$msg = str_replace("*_*","<img src=\"design/smileys/006.gif\" width=\"15\" height=\"14\" border=\"0\">",$msg); 
	$msg = str_replace("._.","<img src=\"design/smileys/007.gif\" width=\"15\" height=\"14\" border=\"0\">",$msg); 
	$msg = str_replace("-_-","<img src=\"design/smileys/008.gif\" width=\"15\" height=\"14\" border=\"0\">",$msg); 
	$msg = str_replace(":D","<img src=\"design/smileys/009.gif\" width=\"15\" height=\"14\" border=\"0\">",$msg); 
	
    return $msg;

	}

?>
Return current item: OneBlog