Loading...
 
Development

Development


Wiki syntax clean up

posts: 33

Hi all,
I wanted to know if there is any function in tikilib.php or any where else to clean up wiki syntax from a page data?
I wnat to have the first 300 characters of begining of page to make a page leader.

Thanks any help,
MN

posts: 1633 Canada
Can you explain a bit more?

posts: 33

exactly I want to extract 300 of starting plain text characters of any new page to show in my first page using a plugin. All is done, but I want to remove any wiki syntax, like :: and also like {CODE()} and so on, from the page data taken from tiki_pages sql table.
So I want to know if there is any function doing this.
If any point remaining, I would describe.

Thanks


posts: 23 United Kingdom

I presume you are using this for some sort of "breif text" plugin that would show the first few lines or something. My own route (unpublished or untested yet) has been to create a {BRIEF} plugin which the other plugin would scan for, much in the same way that the other plugin may be scanning for my tags plugin (again - this is an untested and unreleased thing at the moment, so dont get excited anyone).

posts: 33

That is exactly what I want, but what should I do?
Wait until you release it?