Using a datablock with entitytype = node, having an entity reference field with & in the label and setting the field display options to "Link to the referenced entity" causes a warning "Warning: SimpleXMLElement::addChild(): unterminated entity reference ... in FrxDrupal->loadEntities() (line 181 of forena/plugins/FrxDrupal.inc). The field data is not included in the report.
Where in the above, ... is the part of the field that follows the &.
This is similar to https://www.drupal.org/node/2782837
The symptom can be alleviated by wrapping $value with htmlescapespecialchars() on line 181 in FrxDrupal.inc but I haven't tested for other side effects.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2822441-encoding-drupal-entities.patch | 782 bytes | James Gutholm |
Comments
Comment #2
James Gutholm CreditAttribution: James Gutholm commentedComment #3
metzlerd CreditAttribution: metzlerd commentedThis looks like a duplicate of:
#2782837: Unterminated entity reference with node entity containing &
Comment #4
James Gutholm CreditAttribution: James Gutholm commentedHi Dave, I'm pretty sure that this is the same symptom as #2782837 but specific to entity reference fields and not corrected by the earlier fix.