Truncating empty spaces in between while displaying hyperlinks.
Joined: Nov 08, 2005
I have a situation where in one page I'm editing the name and in other page based on some search criteria i'm displaying the name with hyperlinks so that one can go the edit page by clicking on hte hyperlink. Now the DB length of the name is 100 characters, so what i did in edit screen i gave the name as something like this: "test A" I gave test and then gave empty spaces and then letter 'A'. So now the total length is 100.It got saved also. But in the other screen where I'm searching the name what i got is something this: test A everything under hyperlink. What has happened to the empty spaces in between 'test' and 'A'?
HTML ignores whitespace. More specifically, it reduces mupltiple whitespace characters to a single space. This is normal. If you use the browser's view source feature, you will most likely see that the spaces are there in the source.