Angularjs directive to replace text

前端 未结 6 662
陌清茗
陌清茗 2020-12-04 18:05

How would I create a directive in angularjs that for example takes this element:

Example text http://example.com

And

6条回答
  •  醉梦人生
    2020-12-04 19:03

    To answer the first half of this question, without the additional property requirement, one can use Angular's linky filter: https://docs.angularjs.org/api/ngSanitize/filter/linky

提交回复
热议问题