My client wants to format a page using this "language".
something like :
some text {onpage} { more [...]} another text {end}
{onpage} means that "Another text" will be hidden at first and when you press the link " more [...]" that text will slide down. so this text should be transformed in something (not necesarry exactly) like :
<span>some text <a href="something" class="someclass"> more [...]</a></span><span class="hidden">Another text</span>
the same is with {newpage} except that the second {} parameter will be a link to a page wich will contain the "Another text" text.
some text {newpage} { more [...]} another text {end}
will be :
<span>some text <a href="some_page.php"> more [...]</a></span>
I hope you can understand what i need.
The "language" can be altered if this is too hard to do.
Can you help me with this?
Thanks.