One of the cooler new features in the next version of ColdFusion is getSafeHTML. I had seen this mentioned a few times already but it never really clicked in my brain what it was doing. getSafeHTML makes use of the AntiSamy project. It takes user-generated content and replaces unsafe HTML. What is safe and what isn't? It is totally up to you. The functionality is driven by an XML file (a very complex XML file) that lets you get as granular as you want. Want to support the bold tag but not italics? Fine. Want to support colors for CSS but only some? You can do that. Let's look at a simple example - and one that happens to point out a little issue.
Just a quick FYI to let you know about some upcoming ColdFusion e-seminars. These are online presentations open to the public.
Yesterday I was doing some editing on the CFML Reference wiki when I ran across a function that is - as far as I know - one of the most misused functions in ColdFusion. What function is that? listContains.
While preparing for a presentation I'm doing on ColdFusion 11 on Wednesday night, I discovered an interesting update to the directoryList function. In ColdFusion 11 you can now pass a function for filtering as opposed to just a list of extensions. (And yes, a list is valid - I'll explain more in a bit.) The example function was a bit messy so I updated it to make it a bit nicer. Here is the example.
Got a minute? If so, please fill out this quick survey on PhoneGap/Cordova versions. This was spurred by a question from a reader asking about different versions of PhoneGap and how much each one is used. I wasn't aware of any firm numbers regarding this so I thought a simple survey may help.
A reader posed an interesting question on one of my ColdFusion posts recently. The post (Creating an Excel File) demonstrated how to take form data on the front end and create an Excel file via ColdFusion when the form is submitted. The user wanted to know if this could be done entirely client-side.
I'm a big fan of reveal.js. It is a lightweight HTML-based presentation framework that just works well for me. I switched over to it a while ago and enjoy working with it. Every now and then though I run into an issue that is a bit hard to handle with it. Yesterday I was working on my cfObjective presentation and created the slide you see below.
So after raving about Dash yesterday, I thought I'd whip up a quick Brackets integration extension for it. Brackets recently made Node integration a bit easier, and Dash has a simple CLI interface for searching, so it didn't take long to write an extension that lets you make a selection, hit a key combo, and then open the doc in Dash automatically.
While at iOS training a few weeks ago one of the instructors mentioned an OSX program called Dash. Dash is an offline documentation viewer, which sounds kinda boring, but I'm incredibly pleased with it.
Before I start, let me be clear I'm still learning AngularJS and this "tip" may be 100% wrong. I just ran into this with an application and most likely there is a better way to address what I did.