jquery-tmpl icon indicating copy to clipboard operation
jquery-tmpl copied to clipboard

Nesting <a> tags in subtemplates causes fatal error

Open catamphetamine opened this issue 13 years ago • 0 comments

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 >

catamphetamine avatar Jan 12 '12 09:01 catamphetamine