1 # {%= name %} {%= badge("fury") %}
5 Useful for protecting tokens, like templates in HTML, from being mutated when the string is transformed in some way, like from a formatter/beautifier.
7 **Example without `preserve`**
9 Let's say you want to use [js-beautify] on a string of html with Lo-Dash/Underscore templates, such as: `<ul><li><%= name %></li></ul>`:
11 js-beautify will render the template unusable (and apply incorrect formatting because of the unfamiliar syntax from the Lo-Dash template):
21 **Example with `preserve`**
31 For the record, this is just a random example, I've had very few issues with js-beautify in general. But with or without js-beautify, this kind of token mangling does happen sometimes when you use formatters, beautifiers or similar tools.
34 {%= include("install-npm", {save: true}) %}
43 {%= apidocs("index.js") %}
46 Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue]({%= bugs.url %})
49 {%= include("author") %}
57 {%= include("footer") %}
59 [js-beautify]: https://github.com/beautify-web/js-beautify