Membandingkan teks HTML dengan menggunakan jQuery

$.trim($("#activeUser").text()) == 'Hello World';
string 'Hello World' should be same as html text
Manohar Shrestha