When the dependent field has an & in one of its terms, it doesn't escape the ampersand and instead displays its HTML entity.
I have a field (a taxonomy) that is dependent on another field (another taxonomy). When the dependent taxonomy field spawns, instead of it being "DFS & DCFD", it displays as "DFS & amp; DCFD".
I've tried to escape and replace the name in the Taxonomy Dependencies view, but nothing worked. Ex I tried: {{ name|replace({"amp;": ""}) }}
I apologize if this is a duplicate.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | business_rules-decode_html_entities-3048917-3.patch | 1.44 KB | colan |
Comments
Comment #2
niles38 commentedComment #3
colanDoes this work for you and make sense as a solution?
Comment #4
niles38 commentedHey. I'm so sorry, I didn't see this patch until now.
Yes, this works on my end! Thank you so much!
Comment #6
colanThanks for the feedback.