Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Description Contents Formatting Changes

Quote Reply
Description Contents Formatting Changes

I have been using a simple global (Description_Formatted) for some time, where carriage returns in the Description (and some other Textarea Fields) are converted to <br />.

I am now considering installing TinyMCE to overcome some of the manual editing I have to do of illegal ascii characters etc.

I am trying to work out how I can change all current descriptions so that <br /> are deleted and they are turned into <p>. Example:

first piece of text <br /> next piece of text <br />

which I would like to change to:-

<p>first piece of text</p><p>next piece of text</p>

Anyone got any ideas how I can do this? I don't expect it will be that easy.


The Affiliate Programs Directory