In the database I need to italics species names ex.  Survival of
<em>Shigella</em>
In the search template I use the following:

<form action="." method="GET">
    <label for="q">Search for Publications: </label>
    <input type="text" name="q" value="{{ query|safe}}">
    <input type="submit" value="Search">
  </form>

When a user types in "Survival of Shigella" the search code finds no
record, because I think the <em> tags are hindering the search
somehow.   When I type in Shigella the search finds the record.   I
have changed the
value = {{query|safe}} to all combinations (escape, force_escape,
escapejs, iriencode, urlencode) and I still can't get the search to
work.  Anyone have a suggestion on one; either using different html
tags for italics or two; suggest how to get the search to strip the
tags?


Thanks,

May
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to