MCPcopy Index your code
hub / github.com/textAngular/textAngular / addLink

Function addLink

src/textAngular-sanitize.js:805–817  ·  view source on GitHub ↗
(url, text)

Source from the content-addressed store, hash-verified

803 }
804
805 function addLink(url, text) {
806 html.push('<a ');
807 if (angular.isDefined(target)) {
808 html.push('target="',
809 target,
810 '" ');
811 }
812 html.push('href="',
813 url.replace(/"/g, '&quot;'),
814 '">');
815 addText(text);
816 html.push('</a>');
817 }
818 };
819}]);
820

Callers 1

Calls 1

addTextFunction · 0.85

Tested by

no test coverage detected