RemexHtml/TreeBuilder/TraceFormatter.php
public static function getDebugTag( $element ) {
		if ( !$element ) {
			return '';
		} elseif ( $element instanceof Element || $element instanceof SerializerNode ) {
			return $element->getDebugTag();
		} else {
			return get_class( $element ) . '#' . substr( md5( spl_object_hash( $element ) ), 0, 8 );
		}
	}
public static function getDebugTag( $element ) {
		if ( !$element ) {
			return '';
		} elseif ( $element instanceof Element || $element instanceof SerializerNode ) {
			return $element->getDebugTag();
		} else {
			return get_class( $element ) . '#' . substr( md5( spl_object_hash( $element ) ), 0, 8 );
		}
	}
public static function getDebugTag ( $ element ) { if ( ! $ element ) { return '' ; } elseif ( $ element instanceof Element || $ element instanceof SerializerNode ) { return $ element -> getDebugTag ( ) ; } else { return get_class ( $ element ) . '#' . substr ( md5 ( spl_object_hash ( $ element ) ) , 0 , 8 ) ; } }
Get a debug tag for an element or null

@param Element|SerializerNode|null $element
@return string
Get a debug tag for an element or null