I get the return values as
<\a href="0054F000002TICN" target="_blank">Abhishek Mendon<\/a>
when I use UserInfo.getUserId() to set the a user id for another object.
I get the return values as
<\a href="0054F000002TICN" target="_blank">Abhishek Mendon<\/a>
when I use UserInfo.getUserId() to set the a user id for another object.
Any ID that begins with 005 is a user ID. It can be either 15 or 18 characters in length (see this answer for the differences between them). Whatever is going on with your problem, this isn't it; the ID is certainly valid.