Cool solution, except the regex does not seem to be working, in that none of 
the &'s are being changed to &'s.  But I can't see what it is not working?


--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

....-----Original Message-----
....From: Marlon Moyer [mailto:[EMAIL PROTECTED]
....Sent: Tuesday, July 12, 2005 1:32 PM
....To: CF-Talk
....Subject: Re: Show the code not the conversion.
....
....obscureCommand.cfm
....
....<cfif comparenocase(thistag.executionmode,"end") eq 0>
....    <cfset thistag.GeneratedContent =
....replacenocase(thistag.GeneratedContent,"&([^;[:space:]]+);","&amp;\1;","A
....LL")>
....</cfif>
....
....
....usage:
....
....<cf_obscureCommand>
.... &lt;table border=0 cellpadding=0 width=500&gt;
....       &lt;tr&gt;
....               &lt;td colspan=&quot;3&quot;
....               align=&quot;center&quot;&gt;
....</cf_obscureCommand>
....
....
....On 7/12/05, Ian Skinner <[EMAIL PROTECTED]> wrote:
....> No, I want the htmleditformat, but I would like it to display the
....escaped code, not convert it back.  This is for a tool to take html,
....escape all the code so that it can be put into an XML node.  The tool
....works for geeks like me, since I can get the code by looking at the
....source.  But I was hoping there was an obscure CFML or HTML tag that
....would not convert the code when displaying; thus eliminating the need to
....view the source.
....>
....>
....> --------------
....> Ian Skinner
....> Web Programmer
....> BloodSource
....> www.BloodSource.org
....> Sacramento, CA
....>
....> "C code. C code run. Run code run. Please!"
....> - Cynthia Dunning
....>
....> ....-----Original Message-----
....> ....From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
....> ....Sent: Tuesday, July 12, 2005 1:19 PM
....> ....To: CF-Talk
....> ....Subject: RE: Show the code not the conversion.
....> ....
....> ....Oh... you want to double-up the htmledit formatting?
....> ....
....> ........ i think you have to write your own equivalent of
....htmleditformat --
....> ....since I don't think the native function will double itself up like
....> ....that.
....> ....
....> ....function doubleUp(text) {
....> ....    return
....> ....rereplacenocase(htmleditformat(text),"&([^;[:space:]]+);","&am
....> ....p;\1;","ALL");
....> ....
....> ....}
....> ....
....> ....> You'd have to convert the & into &amp; before you display
....> ....> it
....> ....
....> ....> Example:
....> ....> &amp;lt;table border=0 cellpadding=0 width=500&amp;gt;
....> ....
....> ....>> -----Original Message-----
....> ....>> From: Ian Skinner [mailto:[EMAIL PROTECTED]
....> ....>> Sent: Tuesday, July 12, 2005 3:00 PM
....> ....>> To: CF-Talk
....> ....>> Subject: Show the code not the conversion.
....> ....>>
....> ....>> Is there anyway to get an html page to display this:
....> ....>>
....> ....>> &lt;table border=0 cellpadding=0 width=500&gt;
....> ....>>  &lt;tr&gt;
....> ....>>          &lt;td colspan=&quot;3&quot;
....> ....>> align=&quot;center&quot;&gt;
....> ....>>
....> ....>> Versus this:
....> ....>> <table border=0 cellpadding=0 width=500>
....> ....>>  <tr>
....> ....>>          <td colspan="3" align="center">
....> ....
....> ....
....> ....s. isaac dealey   954.522.6080
....> ....new epoch : isn't it time for a change?
....> ....
....> ....add features without fixtures with
....> ....the onTap open source framework
....> ....
....> ....http://www.fusiontap.com
....> ....http://coldfusion.sys-con.com/author/4806Dealey.htm
....> ....
....> ....
....> ....
....> ....
....> ....
....>
....>
....
....

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211687
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to