reverted str_replace in entities