> Whether it would be NEVER or not, the simple fact is that it's
> IMPOSSIBLE for CF to do this.  The only way I can think to do it
> would be as a postprocessing of the entire generated content (an
> outbound servlet filter) with a full HTML and JS parser available. 
> Here's a relatively simple example (paste it into a text editor and
> remove any extra line breaks - there should be 6 lines: CFSET, A, A,
> carets, A, carets):

Umm... no, far from being impossible, it'd take about 2 seconds to fix
it... whatever under the hood java equivalent works well for this:

replace(string,"/","\/","ALL") 

or if they wanted to get really fancy, 

rereplacenocase("<\s*/\s*(script)\s*>","<\/script>","ALL") 

Which I believe is precisely what SerializeJSON() does to format a
string literal with the string </script> in it. 

I actually can't tell what you're trying to say about the script block
you posted (though I did go look at the .txt file) ... 


-- 
s. isaac dealey  ^  new epoch
 isn't it time for a change? 
     ph: 503.236.3691

http://onTap.riaforge.org/blog



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295634
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to