Is it possible to avoid HTML escaping in admin?
I have defined a model with verbose_name for several fields.
In verbose_name I need HTML code to highlight part of the string e.g.
d1 = models.CharField(max_length=1, blank=False, default='0',
verbose_name="Hi <b>all</b>!'').
In admin the text gets escaped resulting in the whole string being shown
(Hi <b>all</b>!) instead of Hi *all*!
I also tried verbose_name=mark_safe("Hi <b>all</b>!'') to no avail
Suggestions?
Thanks
Francesca
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/LYnO1AIlc_EJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.