Correctly escape symbols

This commit is contained in:
Quantum 2020-06-15 22:19:19 -04:00
parent 14be1dff3c
commit 0d36f7f6bd

View file

@ -85,7 +85,7 @@
<label for="use-symbol">Use separator symbol:</label> <label for="use-symbol">Use separator symbol:</label>
<select id="separator-symbol" name="separator"> <select id="separator-symbol" name="separator">
<% [...require('./generator').symbols].forEach(symbol => { %> <% [...require('./generator').symbols].forEach(symbol => { %>
<option <% if (symbol === require('./generator').defaultSymbol) { %>selected<% } %>><%= symbol %></option> <option <% if (symbol === require('./generator').defaultSymbol) { %>selected<% } %>><%= _.escape(symbol) %></option>
<% }) %> <% }) %>
</select> </select>
</div> </div>