I works like a charm, thank you!
I didn't get that everything was a string. So of course directly inserting code didn't work. As you said, string replacement works perfectly:
Code: Select all
$ temp_color = "#123456"
"Life is better with {color=[temp_color]}colors{/color}!"