#33692: urlize to accept target attribute as parameter
---------------------------------------------+------------------------
               Reporter:  Timothy Schilling  |          Owner:  nobody
                   Type:  New feature        |         Status:  new
              Component:  Template system    |        Version:
               Severity:  Normal             |       Keywords:
           Triage Stage:  Unreviewed         |      Has patch:  0
    Needs documentation:  0                  |    Needs tests:  0
Patch needs improvement:  0                  |  Easy pickings:  0
                  UI/UX:  0                  |
---------------------------------------------+------------------------
 The anchor tag in HTML supports a target attribute
 (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target)
 that has a set number of options. It is helpful to be able to control the
 user's nagivation by specifying whether a link on a page opens in the
 current view or in a new tab/window.

 I propose adding a new parameter to the internal API
 django.utils.html.urlize and the public template filters `urlize` and
 `urlizetrunc`.

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070180ae645173-c708bfef-c813-4e9f-87aa-d2db85117c6b-000000%40eu-central-1.amazonses.com.

Reply via email to