to all guru
i'm not good at regular expression nor even created script of it. however i have a little problem..
how do i remove the html tags but get the property value
like
<p><span style="color: #ff0000;">sdafsdfadsf</span></p> <-- as the text
then the output using regular expression, preg_match or preg-replace will be
sdafsdfadsf as the text
and the color will be store in variable like $forecolor = "#ff0000";
and of course not to mention if the user select font
so it will be $fontface = "Arial";
$fontsize = "";
alignment
etc
and of course i will replace the Carriage or Enter key to \r\n
i need this because i will be using imagick and WYSWYG as editor
your help is highly appreciated
thank you