Rajesh Jangid Rajesh Jangid - 6 months ago 10
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

UPDATE

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

Answer

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.

Comments