Handlebars:
Template
raw: {{{specialChars}}}
html-escaped: {{specialChars}}
Preparation-Script
// Handlebars.registerHelper('loud', function(string) {
//    return string.toUpperCase()
// });
Input
{ specialChars: "& < > \" ' ` =" }
Output
raw: & < > " ' ` =
html-escaped: &amp; &lt; &gt; &quot; &#x27; &#x60; &#x3D;
마지막 업데이트: 2024. 6. 5. 오후 11:37:24