protected function extractNoparse(string $template): string
	{
		$pattern = '/\{\s*noparse\s*\}(.*?)\{\s*\/noparse\s*\}/ms';

		/*
		 * $matches[][0] is the raw match
		 * $matches[][1] is the contents
		 */
		if (preg_match_all($pattern, $template, $matches, PREG_SET_ORDER))
		{
			foreach ($matches as $match)
			{
				// Create a hash of the contents to insert in its place.
				$hash                       = md5($match[1]);
				$this->noparseBlocks[$hash] = $match[1];
				$template                   = str_replace($match[0], "noparse_{$hash}", $template);
			}
		}

		return $template;
	}
protected function extractNoparse(string $template): string
	{
		$pattern = '/\{\s*noparse\s*\}(.*?)\{\s*\/noparse\s*\}/ms';

		/*
		 * $matches[][0] is the raw match
		 * $matches[][1] is the contents
		 */
		if (preg_match_all($pattern, $template, $matches, PREG_SET_ORDER))
		{
			foreach ($matches as $match)
			{
				// Create a hash of the contents to insert in its place.
				$hash                       = md5($match[1]);
				$this->noparseBlocks[$hash] = $match[1];
				$template                   = str_replace($match[0], "noparse_{$hash}", $template);
			}
		}

		return $template;
	}
protected function extractNoparse ( string $ template ) : string { $ pattern = '/\{\s*noparse\s*\}(.*?)\{\s*\/noparse\s*\}/ms' ; /*
		 * $matches[][0] is the raw match
		 * $matches[][1] is the contents
		 */ if ( preg_match_all ( $ pattern , $ template , $ matches , PREG_SET_ORDER ) ) { foreach ( $ matches as $ match ) { // Create a hash of the contents to insert in its place. $ hash = md5 ( $ match [ 1 ] ) ; $ this -> noparseBlocks [ $ hash ] = $ match [ 1 ] ; $ template = str_replace ( $ match [ 0 ] , "noparse_{$hash}" , $ template ) ; } } return $ template ; }
Extracts noparse blocks, inserting a hash in its place so that
those blocks of the page are not touched by parsing.

@param string $template

@return string
Extracts noparse blocks inserting a hash in its place so that those blocks of the page are not touched by parsing .