Fix text escaping issue which leads to security and other major problems.