MCPcopy Create free account
hub / github.com/BorisMoore/jquery-tmpl / unencode

Function unencode

jquery.tmpl.js:316–321  ·  view source on GitHub ↗
( text )

Source from the content-addressed store, hash-verified

314 }
315
316 function unencode( text ) {
317 // Use createElement, since createTextNode will not render HTML entities correctly
318 var el = document.createElement( "div" );
319 el.innerHTML = text;
320 return jQuery.makeArray(el.childNodes);
321 }
322
323 // Generate a reusable function that will serve to render a template against data
324 function buildTmplFn( markup ) {

Callers 1

buildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected