Purpurogallin improves neurological functions of cerebral ischemia and reperfusion mice by inhibiting endoplasmic reticulum stress and neuroinflammation.