How to proper escape echo inside a javascript tag

Whether and how something should be escaped is largely dependent on where the data came from and how it will be used. It’s primary function is to prevent data from being interpreted as a part of the code or mechanism which the data will be contained in – we don’t want a value used in … Read more