jquery-tmpl
jquery-tmpl copied to clipboard
Nesting <a> tags in subtemplates causes fatal error
If you create a "template", for example, like this:
<a style="display: block">{{tmpl "subtemplate"}}</a>
And the nested "subtemplate" like this:
<div><a>some link</a></div>
Then the $.tmpl("template", data) function throws fatal error: "Cannot call method 'push' of undefined".
- The github comment parser is a piece of some nasty substance. i'll figure out how to insert html tags, without them being displayed as html, in a moment.
- Found a way to do that: using html escape characters for < and >