wp/lib/blobfolio/wp/bm/svg/svg_fallback.php
protected static function import($svg = '') {
		if (false === ($svg = static::load_svg($svg))) {
			return false;
		}

		try {
			// Run it through SimpleXML if possible.
			if (\class_exists('SimpleXMLElement')) {
				\libxml_use_internal_errors(true);
				\libxml_disable_entity_loader(true);

				$svg = new SimpleXMLElement($svg);
				$svg = $svg->asXML();
			}
		} catch (\Throwable $e) {
			return false;
		} catch (\Exception $e) {
			return false;
		}

		return $svg;
	}
protected static function import($svg = '') {
		if (false === ($svg = static::load_svg($svg))) {
			return false;
		}

		try {
			// Run it through SimpleXML if possible.
			if (\class_exists('SimpleXMLElement')) {
				\libxml_use_internal_errors(true);
				\libxml_disable_entity_loader(true);

				$svg = new SimpleXMLElement($svg);
				$svg = $svg->asXML();
			}
		} catch (\Throwable $e) {
			return false;
		} catch (\Exception $e) {
			return false;
		}

		return $svg;
	}
Import to DOMDocument object.

@param string $svg SVG code or path.
@return string Lightly sanitized SVG code.