Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs “linky”过滤器能否用于包含html标记的文本?_Angularjs_Ng Bind Html_Ngsanitize - Fatal编程技术网

Angularjs “linky”过滤器能否用于包含html标记的文本?

Angularjs “linky”过滤器能否用于包含html标记的文本?,angularjs,ng-bind-html,ngsanitize,Angularjs,Ng Bind Html,Ngsanitize,从外观上看,它似乎应该与ng bind html一起使用。但是,如果文本包含html标记,则linky将覆盖实际的html解释,以将URL转换为链接 这可以通过例如写作来看出 Pretty text with some links:<br/><img src="http://something.com/lol.gif"> http://angularjs.org/, mailto:us@somewhere.org, another@somewhere.org, and o

从外观上看,它似乎应该与
ng bind html
一起使用。但是,如果文本包含html标记,则
linky
将覆盖实际的html解释,以将URL转换为链接

这可以通过例如写作来看出

Pretty text with some links:<br/><img src="http://something.com/lol.gif">
http://angularjs.org/,
mailto:us@somewhere.org,
another@somewhere.org,
and one more: ftp://127.0.0.1/.
带有一些链接的漂亮文本:
http://angularjs.org/, 邮寄地址:us@somewhere.org, another@somewhere.org, 还有一点:ftp://127.0.0.1/.
在示例的底部

有没有一种方法可以先使用
ng bind html
清理和解释html,然后再解析生成的文本以添加可点击的链接