Created
December 27, 2013 20:32
-
-
Save beratdogan/8152249 to your computer and use it in GitHub Desktop.
PHP DOMDocument Sınıfının Desteklenmeyen Etiketlerde Hata Vermesinin Engellenmesi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dom = new DOMDocument; | |
$previousValue = libxml_use_internal_errors(true); | |
$dom->loadHTML('...'); | |
libxml_clear_errors(); | |
libxml_use_internal_errors($previousValue); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment