zulip/zerver
Akshat baede93f69 narrow: Fix topic highlighting issue with apostrophes in search results.
This commit addresses the issue where the topic highlighting
in search results was offset by one character when an
apostrophe was present. The problem stemmed from the disparity
in HTML escaping generated by the function `func.escape_html` which
is used to obtain `topic_matches` differs from the escaping performed
by the function `django.utils.html.escape` for apostrophes (').

func.escape_html | django.utils.html.escape
-----------------+--------------------------
      '      |           '

To fix this SQL query is changed to return the HTML-escaped
topic name generated by the function `func.escape_html`.

Fixes: #25633.
2023-08-15 17:29:20 -07:00
..
actions uploads: Rewrite comment in do_claim_attachments to improve clarity. 2023-08-15 10:08:11 -07:00
data_import ruff: Fix PERF102 Using only the keys/values of a dict. 2023-08-07 17:23:55 -07:00
integration_fixtures/nagios
lib narrow: Fix topic highlighting issue with apostrophes in search results. 2023-08-15 17:29:20 -07:00
management send_custom_email: Add a mode which reads data from JSON. 2023-08-09 15:49:49 -07:00
migrations linkifier: Support reordering linkifiers. 2023-08-14 15:21:48 -07:00
openapi navbar_alerts: Delay showing "Complete the organization profile" banner. 2023-08-15 10:46:33 -07:00
tests narrow: Fix topic highlighting issue with apostrophes in search results. 2023-08-15 17:29:20 -07:00
tornado notifications: Rename 'pm' to 'dm' in 'RecipientInfoResult' dataclass. 2023-08-10 17:41:49 -07:00
transaction_tests test_classes: Do not necessary wrap test cases in a transaction. 2023-07-06 11:44:50 -07:00
views narrow: Fix topic highlighting issue with apostrophes in search results. 2023-08-15 17:29:20 -07:00
webhooks integrations-docs: Make use of consistent spacing. 2023-08-14 13:29:59 -07:00
worker per-request caches: Add per_request_cache library. 2023-08-11 11:09:34 -07:00
__init__.py
apps.py requirements: Upgrade Python requirements. 2023-04-03 22:39:21 -07:00
context_processors.py emails: Add corporate_enabled to context for emails. 2023-05-01 10:32:43 -07:00
decorator.py logging_util: Remove dependence on get_current_request. 2023-07-11 22:23:47 -07:00
filters.py error_notify: Remove custom email error reporting handler. 2023-07-20 11:00:09 -07:00
forms.py python: Convert translated positional {} fields to {named} fields. 2023-07-18 15:19:07 -07:00
logging_handlers.py error_notify: Remove custom email error reporting handler. 2023-07-20 11:00:09 -07:00
middleware.py per-request caches: Add per_request_cache library. 2023-08-11 11:09:34 -07:00
models.py linkifier: Support reordering linkifiers. 2023-08-14 15:21:48 -07:00
signals.py