How To Escape <> In Javascript Underscore Template? January 18, 2024 Post a Comment when using underscore template i want to interpolate a value in anchor's href attribute like a(href= '<%= id %>', class='products') //underscore template in jade but the outSolution 1: Use != instead of = to unescape.In your case: a.products(href!="<%= id %>") CopyBaca JugaJade Html Escaped StringParsing Data From Database In PugHow To Make Jade Stop Html Encoding Element Attributes, And Produce A Literal String Value? Share You may like these postsHow Can I Remove An Entire Html Tag (and Its Contents) By Its Class Using A Regex?How To Create Sliding Div On Click?Get In A New Line With Can't Trigger A Jquery Function With Scroll On A Particular Div Post a Comment for "How To Escape <> In Javascript Underscore Template?"
Post a Comment for "How To Escape <> In Javascript Underscore Template?"