I am working on a taggable report system where a textblock will store information like this:
This is a line with a {TAG} . The {TAG} will be replaced with normal text via str_replace.
{if 1==1}
I would like to be able to do if statements like this.
{/if}
So the {TAG} gets replaced easy enough, but is there a way to parse a text block to handle if/else statements?