Add HTML entities for ref