fix(ihm): Fix corruption of htmltext attributes with vis H or S (closes #4867)