php/Tag.php
public function removeContent( ...$content ) {
		if ( is_array( $content[ 0 ] ) ) {
			$content = $content[ 0 ];
		}
		foreach ( $content as $item ) {
			if ( !is_string( $item ) ) {
				// Use strict type comparions so we don't
				// compare objects with existing strings
				$index = array_search( $item, $this->content, true );
				if ( $index !== false ) {
					array_splice( $this->content, $index, 1 );
				}
			}
		}
		return $this;
	}
public function removeContent( ...$content ) {
		if ( is_array( $content[ 0 ] ) ) {
			$content = $content[ 0 ];
		}
		foreach ( $content as $item ) {
			if ( !is_string( $item ) ) {
				// Use strict type comparions so we don't
				// compare objects with existing strings
				$index = array_search( $item, $this->content, true );
				if ( $index !== false ) {
					array_splice( $this->content, $index, 1 );
				}
			}
		}
		return $this;
	}
public function removeContent ( ... $ content ) { if ( is_array ( $ content [ 0 ] ) ) { $ content = $ content [ 0 ] ; } foreach ( $ content as $ item ) { if ( ! is_string ( $ item ) ) { // Use strict type comparions so we don't // compare objects with existing strings $ index = array_search ( $ item , $ this -> content , true ) ; if ( $ index !== false ) { array_splice ( $ this -> content , $ index , 1 ) ; } } } return $ this ; }
Remove any items that match by reference

String items should never match by reference
so will not be removed.

@param string|Tag|HtmlSnippet ...$content Content to reomve.
@return $this
Remove any items that match by reference