Parsing BBcode?
Posted: Mon Jan 19, 2009 2:54 pm
hello.
Here is a simple question:
How can I detect this code and replace it with the return of a php function?
code to detect and parse:
<fb:message title="hello">world</fn:function>
PHP function:
function parse_message($title, $content) {
return "<b>$title</b><br />$content";
}
Thank you in advance!
Here is a simple question:
How can I detect this code and replace it with the return of a php function?
code to detect and parse:
<fb:message title="hello">world</fn:function>
PHP function:
function parse_message($title, $content) {
return "<b>$title</b><br />$content";
}
Thank you in advance!