src/UI/HTML/Index.php
protected function setHeadingIds( &$content, $level = 1 ){
		foreach( $this->headings as $heading ){														//  
			$find		= "/<h".$heading->level."(.*)>".$heading->label."/";						//  
			$replace	= '<h'.$heading->level.'\\1 id="'.$heading->id.'">'.$heading->label;		//  
			$content	= preg_replace( $find, $replace, $content );								//  
		}
		return $content;
	}
protected function setHeadingIds( &$content, $level = 1 ){
		foreach( $this->headings as $heading ){														//  
			$find		= "/<h".$heading->level."(.*)>".$heading->label."/";						//  
			$replace	= '<h'.$heading->level.'\\1 id="'.$heading->id.'">'.$heading->label;		//  
			$content	= preg_replace( $find, $replace, $content );								//  
		}
		return $content;
	}
protected function setHeadingIds ( & $ content , $ level = 1 ) { foreach ( $ this -> headings as $ heading ) { //   $ find = "/<h" . $ heading -> level . "(.*)>" . $ heading -> label . "/" ; //   $ replace = '<h' . $ heading -> level . '\\1 id="' . $ heading -> id . '">' . $ heading -> label ; //   $ content = preg_replace ( $ find , $ replace , $ content ) ; //   } return $ content ; }
Tries to apply an ID to collect headings on HTML.
@access		protected
@param		string		$content		Reference to HTML to extend by heading IDs
@param		integer		$level			Heading level to start at, default: 1
@return		string		Resulting HTML
Tries to apply an ID to collect headings on HTML .