Search code examples
javascriptjquerymustache

Mustache template escape html code


I have javascript array like this,

[button: "M'AVERTIR"]

When i tried to display the string in mustache template. It displaying the below format.

M'AVERTIR

My mustache template code is,

{{=<% %>=}}
<%button%>
<%={{ }}=%>

Is there any way to fix this issue?


Solution

  • I have tried like this,

    {{=<% %>=}}
    <%& button %>
    <%={{ }}=%>
    

    It works for me.