libkiwix/test
Veloman Yunkan bceba4da06 HTML-template data is HTML-encoded
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.
2024-01-10 00:28:37 +04:00
..
data Enhanced the test data to demonstrate issue#950 2023-06-24 20:03:54 +04:00
book.cpp Deprecated Book::getLanguage() 2023-03-08 15:24:53 +01:00
httplib.h Fix warning in httplib. 2021-11-16 09:39:56 +01:00
i18n.cpp Added i18n unit test 2024-01-09 20:25:59 +04:00
kiwixserve.cpp Fix tests. 2020-01-20 17:00:18 +01:00
languageTools.cpp Move getLanguageSelfName to tools.h 2023-07-26 16:02:32 +05:30
library.cpp Do not index book's name as a phrase. 2023-11-08 10:29:31 +01:00
library_server.cpp Updated tests depending on kiwix-serve resources 2023-11-15 16:35:06 +04:00
lrucache.cpp uint is not defined on Windows 2022-06-10 11:21:35 +02:00
manager.cpp Make the `Manager` keep a `shared_ptr` instead of a raw Library reference. 2023-09-25 16:30:56 +02:00
meson.build Introduced testing of HTTP response utils 2024-01-09 20:44:44 +04:00
name_mapper.cpp Make the `UpdatableNameMapper` keep a `shared_ptr`. 2023-09-25 16:31:55 +02:00
opdsParsingTools.cpp Tests for readLanguagesFromFeed and readCategoriesFromFeed 2023-07-26 16:02:32 +05:30
opds_catalog.cpp Proper URI-encoding in kiwix::getSearchUrl() 2023-01-25 19:15:12 +04:00
otherTools.cpp Slight enhancement of escapeForJSON() 2024-01-10 00:26:13 +04:00
pathTools.cpp Do not include posix header on Windows 2022-01-19 16:15:59 +01:00
regex.cpp Got rid of unused *pendToFirstOccurence() funcs 2022-09-21 15:52:26 +04:00
response.cpp HTML-template data is HTML-encoded 2024-01-10 00:28:37 +04:00
server.cpp Retired HTTP500Response::generateResponseObject() 2024-01-09 20:44:44 +04:00
server_helper.cpp Introduce a pagination object to render search result. 2022-05-23 19:12:17 +02:00
server_search.cpp Fix server_search test. 2023-06-30 12:04:42 +02:00
server_testing_tools.h Make the `Server` keep a `shared_ptr` instead of a raw NameMapper pointer. 2023-10-05 16:37:22 +02:00
stringTools.cpp Add download-links to tiles in /nojs 2023-03-29 19:02:56 +05:30
tagParsing.cpp Fix tests. 2020-01-20 17:00:18 +01:00