angular/angular.js — pull request #3285 by brooksbp (2013-07-19 17:37:31+00:00)
Title: Linky does not sanitize when used in ngBindHtml directive

Look at the top comment here: http://docs.angularjs.org/api/ngSanitize.filter:linky

... and here is a demo of the undesirable behavior: http://jsfiddle.net/5uSnj/

The purpose of this pull request is to hopefully push this issue further along and gain some attention.

The attached code creates a new directive which calls the htmlParser with a new argument to 'linkify' URLs that are not already wrapped in an <a> tag. I am not very experienced with AngularJS and JavaScript, so this is probably not The Best approach. There must be some way to simply use the ngBindHtml directive with the linky filter for the desired behavior.

Thanks!
Brian