Questions tagged [urlize]
7 questions
3
votes
1 answer
Getting markdown and urlize template tags to play nice
I'm using markdown to format some comments in a Django app.
If I try to combine markdown and urlize, inevitably bad formatting errors happen (links get added where they don't belong or aren't recognized, and of course the errors change depending on…

Jordan Reiter
- 20,467
- 11
- 95
- 161
1
vote
1 answer
Urlize escaping %23 in href of text
I am trying to render text from a user with a url like this in it: https://example.com/%20%23654
I pass the url to urlize and I get this:
In[1]: outp = urlize('https://example.com/%20%23654'); print outp
Out[1]: u'

djds23
- 91
- 1
- 7
1
vote
1 answer
Using Django's urlize with CommonMark
I'd like to use Django's urlize function together with django-markwhat's CommonMark filter.
I'm imagining something like this:
{{ "http://example.com"|urlize|commonmark }}
Which outputs .…

nnyby
- 4,748
- 10
- 49
- 105
1
vote
2 answers
how to use the urlize filter on the templates' url function?
In a Django template, I am trying to use the urlize filter just after the url function is being used, which is generating an url and subsequently generating its tag.
Unfortunately various attempts of using (url myview)|urlize and similar…

fstab
- 4,801
- 8
- 34
- 66
1
vote
2 answers
urlize() in Doctrine_Inflector Class in Doctrine 2 / Symfony 2?
I was looking for a built-in method to urlize/slugify a string, instead of copying a strandard one found on google.
Thus I found this : http://sourcecookbook.com/en/recipes/59/call-the-slugify-urlize-function-from-doctrine , referencing to this…

Bonswouar
- 1,521
- 2
- 17
- 37
0
votes
1 answer
urlize colour change Django
I am using 'urlize' in django (4.0.1) as follows in a 'project description' field and it works great.
{{ project.description | urlize }}
Is there a simple way to include a different color style for the url that urlize identifies ? For…
JVDB
- 11
- 3
0
votes
4 answers
How do I do a case insensitive search for a word and convert it to a hyperlink using jquery?
I want to convert certain key words into affiliate links on my website. I do not want to hand-code each one of those links in every page. So I'm looking for a Javascript/Jquery based solution where using a given a list of keywords and corresponding…

freethinker
- 1,286
- 1
- 10
- 17