Auto Find and Replace Data

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
Tekno Venus
AppGini Super Hero
AppGini Super Hero
Posts: 56
Joined: 2013-01-10 16:37
Location: England
Contact:

Auto Find and Replace Data

Post by Tekno Venus » 2013-03-24 15:57

Hello Guys,

This may sound like a strange problem but I need this to work as specified.

For our DB, we DO NOT want HTML anywhere in the table. What I would like to be able to do is to, possibly using the tablename_init hook or other method, is to replace some data with different data. I.e. I want to replace [br] with <br />. We already have a custom coded solution that we are porting to AppGini (http://sysnative.com/drivers/), but one of the issues is using [br] and replacing with <br />.

And no, I cannot persuade them to use <br /> by default.

I would also like to be able to use [red][/red] tags that are replaced with <span class="red></span> and tags that are replaced with <strong></strong>.

It should be simple with str_replace, but I cannot work out a way to do it.

Any ideas?

Thanks,
Stephen
Stephen Foulds

Admin, Sysnative Forums -- Sysnative Forums

Post Reply