That's exactly what I ment, but I was in a hurry

-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: maandag 28 januari 2002 15:58
To: CF-Talk
Subject: RE: pound signs inside DE('') - help!


> > I try to avoid IIF, consider using <cfif> and
> > <cf_htmlhead></cf_htmlhead>. But if you insist:
> 
> <cfhtmlhead> is necessary so that valid XHTML is generated

Yes, but you can avoid all of the nasty string handling by calling
CFHTMLHEAD from a custom tag (which people often will name CF_HTMLHEAD.
That
tag might look like this:

<cfif ThisTag.ExecutionMode is "end">
        <cfhtmlhead text="#ThisTag.GeneratedContent#">
        <cfset ThisTag.GeneratedContent = "">
</cfif>

So, you could then call this like so:

<cf_htmlhead>
whatever stuff you want to put here - don't worry about escaping quotes,
etc
</cf_htmlhead>

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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