i try to correctly output this following i missing a >
$word = $desc;
$change = array('','000000');
$replace = array('<font color=#', '</font>');
$newword = str_replace($change, $replace, $word);
my data $desc
A potion made from grinded Red Herbs, ^000088Restores 45HP.^000000\r\n^ffffff_^000000\r\nWeight : ^7777777^000000\r\n
how could i got this?
A potion made from grinded Red Herbs, <font color=#000088>Restores 45HP.</font><br>
<font color=#ffffff>_</font><br>
Weight : <font color=#777777>7</font><br>
1st problem is how to close font color
2nd problem is
if replace ^ then 000000 cant be </font>
Thanks for reading ~