JSLint "bad escapement" on a multiply sign

I need to display a multiply sign (×) in a modal being created by JavaScript like so:

$(blah).dialog({ something: '\327' });

However, JSLint says this is a "bad escapement". Unfortunately, using an HTML entity like &times doesn't work in this situation—only the escape code will display properly. Anyone know why this is a bad escapement and if there's a way around this?

Answers


Use the hexadecimal escape: '\u00D7'.


You can just use Ă— if your file encoding is all right.


Need Your Help

How to upload an image and send its src as binary data?

javascript

I want to read in an image data and send the source of the image so the server. I was using a FileReader that creates a Base64-String. As the String can become very, I want to send the image source...

Environment.SpecialFolder.CommonApplicationData returning Program Files/App folder

c# wpf path environment-variables programdata

I developed WPF application (.NET 4.5) which is storing some config files at CommonApplicationData folder.