LRF Output: Fix &quot; entities in attribute values causing problems