tracker issue : CF-4157679

select a category, or use search below
(searches all categories and all time range)
Title:

Integrate with JSoup and Improve DOM options

| View in Tracker

Status/Resolution/Reason: Needs Review//

Reporter/Name(from Bugbase): Shawn Kallner / Shawn Kallner (Shawn Kallner)

Created: 05/25/2016

Components: Wishlist

Versions: 2016

Failure Type: Unspecified

Found In Build/Fixed In Build: CF2016_Update1 /

Priority/Frequency: Trivial / All users will encounter

Locale/System: ALL / Windows 10 64 bit

Vote Count: 0

We have worked on several projects where we have to work with HTML supplied by a website or user and CF could make it a whole lot easier to perform common tasks like handling links, no follows, stripping script from params and tags, and many others. They seem common enough to have baked in functions that are robust.

See my alpha posts on the old prerelease for the details.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4157679

External Customer Info:
External Company:  
External Customer Name: Shawn Kallner
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

Do you have an example of what the code would look like?
Comment by External U.
2643 | June 06, 2016 10:48:56 AM GMT
What's the URL to the previous alpha post? (I don't have access to the alpha.) I tried searching for jsoup in the bugbase, but no results were returned.
Comment by External U.
2644 | June 06, 2016 12:29:52 PM GMT
I would prefer a third-party library approach to this as any blackbox approach to this by Adobe may end up being shortsighted. I use jsoup w/ColdFusion on most projects and appreciate being able to update the java library whenever updates are released versus waiting for a CFUpdate that may add or break other CF functionality. There's so much that you can do with jsoup and it'd be more beneficial to learn it versus depending on canned built-in function. (We wrote some jsoup functions to automatically inline CSS from CKEditor and make it more compatible w/email clients.)
Comment by External U.
2645 | June 06, 2016 12:30:01 PM GMT
Also, adding jsoup support as a third-party library would lender wider support for ColdFusion and not just CF2016. (I've used jsoup with CF8, 9 & 10.)
Comment by External U.
2646 | June 06, 2016 12:31:43 PM GMT
well there are many uses cases and you will still have access to JSoup customization, but I suggested it add common use functions to CF such as: LinkNoFollow - adds/edits no follow to all or specific links HTMLSanitizeTag - removes anything you don't want in a tag inclusive and exclusive SanitizeHTML - removes anything you don't want in an entire HTML block inclusive and exclusive These are just a few. I'm sure they can think of dozens of useful ones but there are many common uses in automated page scanning and CMS content filtering. I can't access the old prerelease to get the more detailed post. I believe Pete created a similar function with JSoup, but it was a bit raw and hard to find. If not for the sake of current developers, I think it should be for the sake of new ones. Such functions that make complex DOM editing easy will appeal to new developers should they accidentally come across the functions after struggling with it in their own language.
Comment by External U.
2647 | June 08, 2016 09:42:39 PM GMT