Preserve the <a> inside of a reference <span>

This was a big gaping DOM diff that's been in there since the beginning,
but which we only found today.

Change-Id: Ie4e791b212ddd3210bc1d5c11308452bb57ae3ce
Merge "Preserve the <a> inside of a reference <span>"