mirror of https://github.com/kiwix/libkiwix.git
Non-HTML-encoded HTML-template data causes problems in HTML even when it appears inside JS string (resulting in the <script> tag being closed by a </script> appearing inside a JS string). Besides, the KIWIX_RESPONSE_DATA and KIWIX_RESPONSE_TEMPLATE variables are set on the window object so that they can be accessed from the top context. This commit eliminates the need for the `escapeQuote` parameter in `escapeForJSON()` (that was introduced earlier in this PR) since now it is set to false in all call contexts. However from the consistency point of view, the default and intuitive behaviour of `escapeForJSON()` should be to escape the quote symbols, which justifies the existence of that parameter. |
||
---|---|---|
.. | ||
captured_external.html | ||
catalog_entries.xml | ||
catalog_v2_categories.xml | ||
catalog_v2_entries.xml | ||
catalog_v2_entry.xml | ||
catalog_v2_languages.xml | ||
catalog_v2_partial_entry.xml | ||
catalog_v2_root.xml | ||
error.html | ||
error.xml | ||
index.html | ||
no_js_download.html | ||
no_js_library_page.html | ||
search_result.html | ||
search_result.xml | ||
suggestion.json | ||
url_of_search_results_css | ||
viewer_settings.js |