Update html.php

I replaced the function "function_exists" to "method_exists" in the line 29.