Context:
GIVEN there's a page where HTML entities are used in Wikitext
<ref details="page & chapter 1" name="book">Miller</ref>
AND a VE user loads that page for editing
WHEN the users changes anything on that page
AND saves the page
THEN the HTML entities will be saved in their decoded form
<ref details="page & chapter 1" name="book">Miller</ref>
Note:
It seems that critical charachters like " (") and > (>) are note affected otherwise article might break completely.
Technical context:
Allowed HTML entities such as ' are all changed to their decoded characters after visual editing a ref. These are correctly surrounded by mw:Entity spans in Parsoid eg. <span typeof="mw:Entity" id="mwCg">'</span>, but do not round-trip yet—these characters should end up back as an HTML entity in wikitext.