[Django] #30700: templatetag truncatechars_html breaks HTML entities

7 views
Skip to first unread message

Django

unread,
Aug 11, 2019, 9:54:47 PM8/11/19
to django-...@googlegroups.com
#30700: templatetag truncatechars_html breaks HTML entities
-----------------------------------------+------------------------
Reporter: John Carter | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
truncatechars_html doesn't handle HTML entities, so produces output like
`&#…`

See also - #20568

--
Ticket URL: <https://code.djangoproject.com/ticket/30700>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Aug 11, 2019, 9:58:04 PM8/11/19
to django-...@googlegroups.com
#30700: templatetag truncatechars_html breaks HTML entities
-------------------------------+--------------------------------------

Reporter: John Carter | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: master
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Description changed by John Carter:

Old description:

> truncatechars_html doesn't handle HTML entities, so produces output like
> `&#…`
>
> See also - #20568

New description:

truncatechars_html doesn't handle HTML entities, so produces output like
`&#…`

See failing test here: https://github.com/django/django/pull/11660

See also - #20568

--

--
Ticket URL: <https://code.djangoproject.com/ticket/30700#comment:1>

Django

unread,
Aug 11, 2019, 10:00:30 PM8/11/19
to django-...@googlegroups.com
#30700: templatetag truncatechars_html breaks HTML entities
-------------------------------+--------------------------------------

Reporter: John Carter | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by John Carter):

* has_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/30700#comment:2>

Django

unread,
Aug 11, 2019, 10:16:44 PM8/11/19
to django-...@googlegroups.com
#30700: templatetag truncatechars_html breaks HTML entities
-------------------------------+--------------------------------------

Reporter: John Carter | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Description changed by John Carter:

Old description:

> truncatechars_html doesn't handle HTML entities, so produces output like
> `&#…`
>


> See failing test here: https://github.com/django/django/pull/11660
>
> See also - #20568

New description:

truncatechars_html doesn't handle HTML entities, so produces output like
`&#…`

See failing test here: https://github.com/django/django/pull/11660

eg: https://djangoci.com/job/pull-requests-bionic/database=mysql,label
=bionic-
pr,python=python3.7/1305/testReport/junit/template_tests.filter_tests.test_truncatechars_html/FunctionTests/test_truncate_on_name_entity/

See also - #20568

--

--
Ticket URL: <https://code.djangoproject.com/ticket/30700#comment:3>

Django

unread,
Aug 12, 2019, 3:25:43 AM8/12/19
to django-...@googlegroups.com
#30700: templatetag truncatechars_html breaks HTML entities
-------------------------------+--------------------------------------

Reporter: John Carter | Owner: nobody
Type: Uncategorized | Status: closed
Component: Uncategorized | Version: master
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Carlton Gibson):

* status: new => closed
* resolution: => duplicate


Comment:

Duplicate of #30686.

--
Ticket URL: <https://code.djangoproject.com/ticket/30700#comment:4>

Reply all
Reply to author
Forward
0 new messages