I am using 'urlize' in django (4.0.1) as follows in a 'project description' field and it works great.
<h6>{{ project.description | urlize }}</h6>
Is there a simple way to include a different color style for the url that urlize identifies ? For example, standard text in black and the url in say blue
Thank you.
EDIT The above code evaluates to:
<h6>Amazing art by:
<a href="http://www.instagram.com/paint_the_reflection" rel="nofollow">www.instagram.com/paint_the_reflection</a>
</h6>
so following on from @sc_props suggestion, i suppose something in the h6 tag that will conditionally add style to the tag if it happens to exist (as created by the urlize).
Amazing art by: www.instagram.com/paint_the_reflection
– JVDB Feb 27 '22 at 22:47