MCPcopy Index your code
hub / github.com/socketstream/socketstream / escape

Function escape

docs/js/docs.js:9–15  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

7
8docsApp.directive.ngHtmlWrapLoaded = function(reindentCode, templateMerge, loadedUrls) {
9 function escape(text) {
10 return text.
11 replace(/\&/g, '&').
12 replace(/\</g, '&lt;').
13 replace(/\>/g, '&gt;').
14 replace(/"/g, '&quot;');
15 }
16
17 function setHtmlIe8SafeWay(element, html) {
18 var newElement = angular.element('<pre>' + html + '</pre>');

Callers 2

seFunction · 0.70
docs.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected