When viewing a list of nodes in a select list on a node reference field, if their titles contain special characters they are displayed as html entity numbers rather than the character.
Eg: A title of 'Women's team' appears as 'Women's team' in the select list.
( Similar to #1357556: Convert & in nodereference titles to Ampersand ? )
Comments
Comment #1
sahuni commentedAlso for ampersand in select box.
For example if title is "Cas d'école", select box shows :
Casd'coleComment #2
dubs commentedYes, I also see this problem and and for me it occurs if References are used as Views Exposed Filters.
Comment #3
_paul_meta commentedYep same issue here. When i create a node, if one of the fields is a select field of node references, any special characters in the node title display as html entity numbers. using 7.20.
Comment #4
alexverb commentedAre you by any chance using hierachical select's hs_taxonomy? I've got the same thing happening when using it's formatter to display the links in lineage.
Comment #5
xpersonas commentedSubscribe
Comment #6
alexverb commentedThis code in node_reference.module says it's not taking care of encoding or escaping and the caller is supposed to do so. Maybe someone can explain where it is supposed to happen?
Comment #7
alexverb commentedIf we use $value['title'] instead of $value['rendered'] there is no problem.
If we keep $value['rendered'], I think it should be decoded like $value['group'] is.
Comment #8
antiorario commentedSeems fixed in 7.x-2.x-dev.
Comment #9
jfhovinne commentedI confirm the bug doesn't appear anymore after upgrading to 7.x-2.x-dev.
Comment #10
alexverb commentedYup, looks like there has been chosen to decode the string. Works for me too.
Comment #11.0
(not verified) commentedMade the html entity display properly using code tags.