adding linky filter to ngSanitize

This commit is contained in:
John Emau
2013-11-13 14:28:12 -08:00
parent 57be8e9bd7
commit 54daea88b9
+13
View File
@@ -19,4 +19,17 @@ declare module ng.sanitize {
(html: string): string;
}
///////////////////////////////////////////////////////////////////////////
// Filters included with the ngSanitize
// see https://github.com/angular/angular.js/tree/v1.2.0/src/ngSanitize/filter
///////////////////////////////////////////////////////////////////////////
export module filter {
// Finds links in text input and turns them into html links.
// Supports http/https/ftp/mailto and plain email address links.
// see http://code.angularjs.org/1.2.0/docs/api/ngSanitize.filter:linky
interface ILinky {
(text: string, target?: string): string;
}
}
}