Finds links in text input and turns them into html links. Supports http/https/ftp/mailto
and plain email address links.
Requires the ngSanitize
module to be installed.
<span ng-bind-html="linky_expression | linky"></span>
$filter('linky')(text, target, attributes)
Param | Type | Details |
---|---|---|
text | string | Input text. |
target | string | Window ( |
attributes (optional) | object function(url) | Add custom attributes to the link element. Can be one of:
|
string |
Html-linkified and sanitized text. |
© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.5.11/docs/api/ngSanitize/filter/linky