hello,
i have to work with html formated text in one textArea, but need to transform certain tags to the ones flash can correctly read
I was trying with this, for strong tag, but no luck
$tag_strong = array('<strong>', '<\/strong>');
$bold = array('<B>', '</B>');
for ($i=0; $i<count($tag_strong); $i++) {
$a_procurar[$i] = "/".$tag_strong[$i]."/";
$valor = @preg_replace($a_procurar[$i], $bold[$i], $valor);
};
how can i do this?, or even better, how to have an array of what to replace and a kind of regex to do the replacement?
hope you can help me,
thanks