Question: Can I use JavaScript, or any other non-server script, to read a web page? I'd like my local HTML file (with JavaScript code) to read a internal web page, which is hosted on a web server, and get its entire source code. 

I tried XMLHttpRequest, but I am facing cross-domain issue. Any solution to this? Or any other non-server script that I can use? I already have a few JavaScript functions that I'd be using so want to use your suggested solution and my existing JavaScript code together.

Answer: 
I had right now the exactly same problem.

I success to solve it by using: `SomeStringVar.replaceAll("\\P{Print}","");`.

This command remove all the Unicode characters in the variant (characteres that you cant see- the strings look like equal, even they not really equal).

I use this command on each variant i needed in the equalization, and it works for me as well.
equals() is a method of String class. So, it works with double quotes.

```
 if(someString.equals("something")) ✓
 if(someString.equals('something')) ×

```