Handle different loadHTML arguments for PHP 5.3