I wasn't even aware there was a slugify; mine looks something like this[1]."
However, if you are passing the actual string "“stuffhere”" to slugify(), you are escaping it too early. It should go something like slugify(txt), escape(txt), response(txt). This is more of a django-users matter at this point though. If you suggest that slugify() detects already-escaped html entities and strips them, I'm extremely extremely strongly against it. But then again, I use my own ... [1] strin = """ ".,?!:;%*#&+=()[]<>/""" strout = "---------------------/" def slugify(txt): ... trans = maketrans(strin, strout) ... txt = unicode(txt) ... txt = normalize("NFKD", txt).encode("ascii", "ignore").strip().lower() ... txt = txt.replace("'", "").translate(trans) ... txt = "-".join(seg for seg in txt.split("-") if seg)[:50].rstrip("-") ... return txt J. Leclanche / Adys On Tue, Jul 6, 2010 at 9:00 PM, C. Alan Zoppa <alan.zo...@gmail.com> wrote: > I occasionally enter special characters as HTML entities (e.g. “, > ®, etc.) in an object's title. I feel that slugify() would be more > useful if these were removed entirely from the returned slug. For example: > At the moment, a title of “Object Title ” returns the slug > "ldquoobject-titlerdquo." It is my opinion that "object-title" would be more > useful in this situation. > -- > C. Alan Zoppa > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To post to this group, send email to django-develop...@googlegroups.com. > To unsubscribe from this group, send email to > django-developers+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-developers?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.