When a entity name has an ' of any other punctuation is being sanitized making autocomplete look weird

CommentFileSizeAuthor
#2 2796101-apostrophe.patch408 bytesjmoratti

Comments

jmoratti created an issue. See original summary.

jmoratti’s picture

StatusFileSize
new408 bytes

  • 211874a committed on 7.x-1.x
    Issue #2796101 by jmoratti: apostrophe's in entity names are being...
b-prod’s picture

Status: Active » Fixed

Patch committed, thanks.

I just inverted the functions, so it becomes :
decode_entities(strip_tags($label...

b-prod’s picture

Status: Fixed » Needs work

@jmoratti: should we not avoid check_plain and perform a filter_xss instead?

So we could avoid to use strip_tags and perhaps decode_entities.

Could you try this with the labels that cause you trouble? Tell me if it works well so I could update the module.

jmoratti’s picture

@b-prod will try and see what happens