Skip to content

Instantly share code, notes, and snippets.

@beratdogan
Created December 27, 2013 20:32
Show Gist options
  • Save beratdogan/8152249 to your computer and use it in GitHub Desktop.
Save beratdogan/8152249 to your computer and use it in GitHub Desktop.
PHP DOMDocument Sınıfının Desteklenmeyen Etiketlerde Hata Vermesinin Engellenmesi
<?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