Comparando el texto HTML usando jQuery
$.trim($("#activeUser").text()) == 'Hello World';
string 'Hello World' should be same as html text
Manohar Shrestha
$.trim($("#activeUser").text()) == 'Hello World';
string 'Hello World' should be same as html text