protected function removeAttributionLink( $content ) {
		$html5 = new HtmlParser();
		$dom = $html5->loadHTML( $content );

		$urls = $dom->getElementsByTagName( 'a' );
		foreach ( $urls as $url ) {
			/** @var \DOMElement $url */
			// Is this the the attributionUrl?
			if ( $url->getAttribute( 'rel' ) === 'cc:attributionURL' ) {
				$url->parentNode->replaceChild(
					$dom->createTextNode( $url->nodeValue ),
					$url
				);
			}
		}

		$content = $html5->saveHTML( $dom );

		return $content;
	}
protected function removeAttributionLink( $content ) {
		$html5 = new HtmlParser();
		$dom = $html5->loadHTML( $content );

		$urls = $dom->getElementsByTagName( 'a' );
		foreach ( $urls as $url ) {
			/** @var \DOMElement $url */
			// Is this the the attributionUrl?
			if ( $url->getAttribute( 'rel' ) === 'cc:attributionURL' ) {
				$url->parentNode->replaceChild(
					$dom->createTextNode( $url->nodeValue ),
					$url
				);
			}
		}

		$content = $html5->saveHTML( $dom );

		return $content;
	}
protected function removeAttributionLink ( $ content ) { $ html5 = new HtmlParser ( ) ; $ dom = $ html5 -> loadHTML ( $ content ) ; $ urls = $ dom -> getElementsByTagName ( 'a' ) ; foreach ( $ urls as $ url ) { /** @var \DOMElement $url */ // Is this the the attributionUrl? if ( $ url -> getAttribute ( 'rel' ) === 'cc:attributionURL' ) { $ url -> parentNode -> replaceChild ( $ dom -> createTextNode ( $ url -> nodeValue ) , $ url ) ; } } $ content = $ html5 -> saveHTML ( $ dom ) ; return $ content ; }
Removes the CC attribution link.

@since 4.1

@param string $content

@return string
Removes the CC attribution link .