diff --git a/translators/tmgmt_file/src/Plugin/tmgmt_file/Format/Html.php b/translators/tmgmt_file/src/Plugin/tmgmt_file/Format/Html.php
index ac8a04b..d16e5ad 100644
--- a/translators/tmgmt_file/src/Plugin/tmgmt_file/Format/Html.php
+++ b/translators/tmgmt_file/src/Plugin/tmgmt_file/Format/Html.php
@@ -61,7 +61,7 @@ class Html implements FormatInterface {
    */
   public function import($imported_file, $is_file = TRUE) {
     $dom = new \DOMDocument();
-    $dom->loadHTMLFile($imported_file);
+    $is_file ? $dom->loadHTMLFile($imported_file) : $dom->loadHTML($imported_file);
     $xml = simplexml_import_dom($dom);
 
     $data = array();
