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 × 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?
Use the hexadecimal escape:
'\u00D7'.