protected function addRelAttribute(DOMElement $element)
	{
		$rel = $element->getAttribute('rel');
		if (preg_match('(\\S$)', $rel))
		{
			$rel .= ' ';
		}
		$rel .= 'noreferrer';

		$element->setAttribute('rel', $rel);
	}
protected function addRelAttribute(DOMElement $element)
	{
		$rel = $element->getAttribute('rel');
		if (preg_match('(\\S$)', $rel))
		{
			$rel .= ' ';
		}
		$rel .= 'noreferrer';

		$element->setAttribute('rel', $rel);
	}
protected function addRelAttribute ( DOMElement $ element ) { $ rel = $ element -> getAttribute ( 'rel' ) ; if ( preg_match ( '(\\S$)' , $ rel ) ) { $ rel .= ' ' ; } $ rel .= 'noreferrer' ; $ element -> setAttribute ( 'rel' , $ rel ) ; }
Add a rel="noreferrer" attribute to given element

@param  DOMElement $element
@return void
Add a rel = noreferrer attribute to given element