
Handlebars by default escapes special characters. So, if you trying to print special characters like ™ or ® etc, they will be escaped and the corresponding html codes will be printed. For example , <!DOCTYPE html> <html> <head> <title>Handlebars js</title> <script type="text/javascript" src="handlebars-v4.0.10.js"></script> </head> <body> <div id="displayArea"></div> <script id="myTemplate" type="text/x-handlebars-template"> <h1>{{desc}}</h1> </script> <script type="text/javascript"> var …
Continue reading Handlebars.js – How to escape or display special html characters