What is the proper HTML entity for the “x” in a dimension?

× Unicode: U+00D7 MULTIPLICATION SIGN HTML: ×, × CSS: \00d7 See the Wikipedia article about the multiplication sign: In mathematics, the symbol × (read as times or multiplied by) is primarily used to denote the […] Geometric dimension of an object, such as noting that a room is 10×12 feet in area. Depending on the … Read more

Replacing   from javascript dom text node

This is much easier than you’re making it. The text node will not have the literal string “ ” in it, it’ll have have the corresponding character with code 160. function replaceNbsps(str) { var re = new RegExp(String.fromCharCode(160), “g”); return str.replace(re, ” “); } textNode.nodeValue = replaceNbsps(textNode.nodeValue); UPDATE Even easier: textNode.nodeValue = textNode.nodeValue.replace(/\u00a0/g, ” “);

Error Parsing /page.xhtml: Error Traced[line: 42] The entity “nbsp” was referenced, but not declared

Facelets is a XML based view technology. XML has only five predefined entities. The   is not among them. It works only when used in plain HTML or in legacy JSP (note: it doesn’t work in JSPX as that’s also XML based!). To fix this, you either need to declare the entity yourself in the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)