Title: Message

well, I had a look around a few things but didn’t come across anything quite suitable… in the end I hacked it like this:

 

<cfset tagList="<P,</P>,<BR/>,<A,</A>,<UL,</UL>,<LI,</LI>,<OL,</OL>">

<cfparam name="request.textContent" default="#selectText.textContent#">

<cfloop index="tag" list="#tagList#" delimiters=",">

            <cfset request.textContent="#replace(request.textContent, tag, lCase(tag), 'all')#">

</cfloop>

 

…I guess it could be done a lot more elegantly than this so if anyone’s got any pointers… ??

 

-----Original Message-----
From: Snake Hollywood [mailto:[EMAIL PROTECTED]
Sent: 10 June 2004 16:30
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] SoEditor and XHTML validation

 

i believe u can find a UDF on cflib that wil upper or lowercase all html tags in a passed variable.

 

Russ

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 10 June 2004 14:13
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] SoEditor and XHTML validation

Can you not use the lcase() function somehow?

-----Original Message-----
From: Damian Watson [mailto:[EMAIL PROTECTED]
Sent: 10 June 2004 12:21
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] SoEditor and XHTML validation

Hi all, anyone know if SoEditor can output it’s html in lowercase so that it validates for XHTML?? If not then has anyone got anything handy to convert html tags into lcase?


PLEASE NOTE: THE ABOVE MESSAGE WAS RECEIVED FROM THE INTERNET.

On entering the GSi, this email was scanned for viruses by the Government Secure Intranet (GSi) virus scanning service supplied exclusively by Energis in partnership with MessageLabs.

Please see http://www.gsi.gov.uk/main/notices/information/gsi-003-2002.pdf for further details.

In case of problems, please call your organisational IT helpdesk


The original of this email was scanned for viruses by the Government Secure Intranet (GSi) virus scanning service supplied exclusively by Energis in partnership with MessageLabs.

On leaving the GSi this email was certified virus-free

Reply via email to