From c7dfb5eb88e2cb9c489725e5ad81bc1c69f7b3fc Mon Sep 17 00:00:00 2001 From: gustavodeandrade Date: Fri, 21 Oct 2016 00:08:08 -0200 Subject: [PATCH 1/2] Fix issue 1704 --- docs/topics/selectors.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/topics/selectors.rst b/docs/topics/selectors.rst index 39ec9b73c..293628953 100644 --- a/docs/topics/selectors.rst +++ b/docs/topics/selectors.rst @@ -626,6 +626,11 @@ Built-in Selectors reference ``regex`` can be either a compiled regular expression or a string which will be compiled to a regular expression using ``re.compile(regex)`` + .. note:: + + Note that ``re`` and ``re_first`` both escape HTML entities. If you want to + get raw unescaped content, use extract() or extract_first() + .. method:: register_namespace(prefix, uri) Register the given namespace to be used in this :class:`Selector`. From f2e49bc23cd2044551721bf81f6443a391b30f6f Mon Sep 17 00:00:00 2001 From: Gustavo de Andrade Date: Tue, 1 Nov 2016 21:32:17 -0200 Subject: [PATCH 2/2] Update selectors.rst Decode instead escape, exceptions < and & (kmike) Second sentence droped (Digenis) --- docs/topics/selectors.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/topics/selectors.rst b/docs/topics/selectors.rst index 293628953..9f8143db1 100644 --- a/docs/topics/selectors.rst +++ b/docs/topics/selectors.rst @@ -628,8 +628,7 @@ Built-in Selectors reference .. note:: - Note that ``re`` and ``re_first`` both escape HTML entities. If you want to - get raw unescaped content, use extract() or extract_first() + Note that ``re()`` and ``re_first()`` both decode HTML entities (except ``<`` and ``&``). .. method:: register_namespace(prefix, uri)