1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 23:05:10 +01:00

Also strip enter characters

This commit is contained in:
2018-05-15 11:44:53 +02:00
parent 2b19b770dc
commit b36cd8db6b

View File

@@ -3,9 +3,9 @@ var instance = M.Autocomplete.getInstance(elem);
instance.updateData({ instance.updateData({
{% for bookmark in bookmarks %} {% for bookmark in bookmarks %}
{% if bookmark.favicon %} {% if bookmark.favicon %}
"{{ bookmark.title | replace('"', '\\"') | replace('\n', '') }}": "{{ url_for('static', filename='favicons/' + bookmark.favicon) }}", "{{ bookmark.title | replace('"', '\\"') | replace('\n', '') | replace('\r', '') }}": "{{ url_for('static', filename='favicons/' + bookmark.favicon) }}",
{% else %} {% else %}
"{{ bookmark.title | replace('"', '\\"') | replace('\n', '') }}": null, "{{ bookmark.title | replace('"', '\\"') | replace('\n', '') | replace('\r', '') }}": null,
{% endif %} {% endif %}
{% endfor %} {% endfor %}
}); });