Rajesh Jangid Rajesh Jangid - 1 year ago 71
HTML Question

Difference between two white spaces

This may sound stupid question but i can't figure out why in a string

करहि तज दबअउइ उहिकिहर कतज

I can't find any spaces in this string

Then I thought may be i just copy the blank space between two words and compare with space guess what it gives false

console.log(' ' == ' ');

couldn't figure out why this is happening


Is there any way to find any type of blank spaces in string weather that be any any character code?

Answer Source

It appears that the string is using the html entity   which is a non-breaking space character, which is indeed different than the ' ' space character.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download