0

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?

clem
  • 3,524
  • 3
  • 25
  • 41

2 Answers2

3

Use the hexadecimal escape: '\u00D7'.

SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964
0

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

Marcel Korpel
  • 21,536
  • 6
  • 60
  • 80