On Feb 2, 9:14 pm, Andy789 <e...@abcstudio.com.au> wrote: > Thank you. I think it should work - I will give it a try tomorrow. The > whole mess is just to store these html strings in the database and > extract it later to render a part of the page. > > any better solutions for this? >
I suppose the significant factor is how different the different elements you are saving to each other. If they are very similar with small changeable portions, it may be worth your while using a templating approach - recreating the items by filling in the appropriate parts from your database data to recreate the elements on the page. I had great success using this plugin as the basis of a form builder and editor that did just that: http://jtemplates.tpython.com/