For the following code, it seems like we cannot escape the single quote? (for Bill Gates's dog). No matter how it is done, the single quote will be taken as the closing single quote for the onclick=' ?

<a href="#" onclick='changeIt("Bill Gates\'s dog said &amp;quot;Whoof Whoof!&amp;quot; and \n \r\n \t ran away."); return false;'>Click me</a>

is there really a way around it except to use &amp;#039; to replace that single quote? thanks.