Use HTMLEntities gem.