qutebrowser/tests/unit/completion
Ryan Roden-Corrent 4f99af5876
Don't escape quotes in completion text.
Resolves the example case in #4199, but not the larger problem. We don't
need to escape quotes as we don't put the string in an attribute value.
From the docs at
https://docs.python.org/3/library/html.html#html.escape:

> If the optional flag quote is true, the characters (") and (') are also
> translated; this helps for inclusion in an HTML attribute value
> delimited by quotes, as in <a href="...">.

Escaping quotes means we end up with a literal &#x27; in the completion
view wherever there is a quote in the source text.

However, problem in #4199, where unexpected parts of the text are
highlighted, can also happen with '<', '>', and '&', which still must be
escaped.
2018-09-15 13:39:49 -04:00
..
test_completer.py Remove the deprecated :tab-detach 2018-06-09 21:25:09 +02:00
test_completiondelegate.py Don't escape quotes in completion text. 2018-09-15 13:39:49 -04:00
test_completionmodel.py Update copyright years 2018-02-05 12:19:50 +01:00
test_completionwidget.py Update copyright years 2018-02-05 12:19:50 +01:00
test_histcategory.py Rename history.exclude to completion.web_history.exclude 2018-09-02 14:42:47 +02:00
test_listcategory.py Update copyright years 2018-02-05 12:19:50 +01:00
test_models.py Use a shared web_history fixture 2018-09-06 20:08:32 +02:00