I am just starting to use Mustache and I have this rendering problem. I send data through the render function:
return Mustache.render(html, data);
or
return Mustache.to_html(html, data);
But when I add it to the div like:
$('#jqt').append(html);
It returns results similar to this in the actual text:
<div id="product_search_view"><form class="search-form" ><ul class="rounded"><li><input type="text" id="label" name="search" placeholder="Enter what you are looking for"></li></ul><a href="#" class="whiteButton submit" id="search-button" >Search</a></form><ul id="search-results" class="edgetoedge"></ul></div>
How can I make a mustache not put these characters?
source
share