Does anyone know of a plugin, which is executed every time someone
saves or OK's a Text element editing session, which can strip cariage
return/linefeed characters out of the text element content, before it
is stored in the database.

For example if the HTML source of a text element was:-

<P>This is paragraph1</P>

<P>This is paragraph2</P>"


...after the plugin worked it's magic, the actual data written back
into the databse should be:-

<P>This is paragraph1</P><P>This is paragraph2</P>

This would solve a multitude of issues where ASP scripts try to store
the content of a text element in a string variable.  What happens at
the moment is whenever a text element contains one of more break
characters, ASP returns an "Unterminated String Variable" error.

This can be worked around using Jscript (see <a ref="http://
groups.google.com/group/RedDot-CMS-Users/browse_thread/thread/
161c741bf554fc53">Render tags and Text Elements</a>) but it's far from
an elegant solution and I suspect that if the list in question had
many pages, then we would hit rendering problems caused by the page
frantically trying to generate dozens of Jscript routines, each
containing a commented version of the applicable text element
instance.

If anyone is aware of such a plugin, I would be most grateful if they
could reply to this thread.

Thanks and Regards


Phil

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/RedDot-CMS-Users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to