I'm working on a multilingual website right now, that pulls the content of
pages from a database broken down into tables by language.

Everything's working fine with the actual site, but while working on the
admin side, I'm having a bit of trouble.

I've tried used (HTMLCodeFormat), but this did not at all have the
desired effect.

What I'm looking to do is:

* When the data is retrieved for the admin form, strip out the HTML
commands <BR> and <P> and replace them with actual carriage returns/double
carriage returns. Leave all other HTML tags in place (ie, <B>, etc).

* When the admin form is submitted, add these values back in before
storing the new information in the database, so the page is formatted
nicely when viewed on the normal website.


What is the best way to do this? I would imagine this is fairly common, so
is there a tag that can do this automatically for me, both ways ?


Thanks a lot,

Emmanuel Crouvisier
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to