To reproduce:
+ Create taxonomy with a few terms in, be sure to put a < or a > in one of the terms
+ Create a CCK content taxonomy field that selects these terms with the html characters in it
+ Go to the node add or edit page
You will now see that the term name is cut off at the < or > character.
I've created a patch that fixes the problem. Any feedback or improvements are very welcome.

Also, this issue might be related: http://drupal.org/node/301124

Comments

weseze’s picture

StatusFileSize
new684 bytes

Correct patch here (the previous one had the change commented out...)

he0x410’s picture

Priority: Normal » Minor
Status: Active » Postponed (maintainer needs more info)

I tried to reproduce that and didn't get cut off term. May you provide example of term/screenshot?

weseze’s picture

StatusFileSize
new130.92 KB

left in screenshot: the part of my taxonomy listing that I'm using
right in screenshot: the resulting CCK field

he0x410’s picture

Status: Postponed (maintainer needs more info) » Patch (to be ported)

ok

slucas’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new23.83 KB

Just try your patch it certainly work, but not for one specific character which is ' in french it could be use like in the phrase "d'architecture"
It renders as '
Do you have any idea why it doesn't work for this character.
It's in a exposed filter of a view on a content taxonomy field ?

weseze’s picture

Turns out that the problem is not with this module. Please do not apply patch. See: #321375: doesn't handle check_plain ("<any>" or "<none>" brakes)