protected function getErrorLevelForAdditionalHtml($html)
	{
		if (preg_match('#^<(i|b|ul|ol|li|h3)( style="[a-zA-Z0-9_\:\ \;\-]+")?>$#', $html))
		{
			return Output::ERROR;
		}

		if (in_array($html, array(
			'<em>',
			'<strong>',
			'<samp>',
			'<u>',
			'<br />',
			'<br>',
			'<hr>'
		)))
		{
			return Output::NOTICE;
		}

		if (preg_match('#^<a href="([a-zA-Z0-9_\:\&\/\?\.\-\#\@]+)">$#', $html) ||
			preg_match('#^<a href="([a-zA-Z0-9_\:\&\/\?\.\-\#]+)" rel="external">$#', $html))
		{
			return Output::ERROR;
		}

		return Output::FATAL;
	}
protected function getErrorLevelForAdditionalHtml($html)
	{
		if (preg_match('#^<(i|b|ul|ol|li|h3)( style="[a-zA-Z0-9_\:\ \;\-]+")?>$#', $html))
		{
			return Output::ERROR;
		}

		if (in_array($html, array(
			'<em>',
			'<strong>',
			'<samp>',
			'<u>',
			'<br />',
			'<br>',
			'<hr>'
		)))
		{
			return Output::NOTICE;
		}

		if (preg_match('#^<a href="([a-zA-Z0-9_\:\&\/\?\.\-\#\@]+)">$#', $html) ||
			preg_match('#^<a href="([a-zA-Z0-9_\:\&\/\?\.\-\#]+)" rel="external">$#', $html))
		{
			return Output::ERROR;
		}

		return Output::FATAL;
	}
protected function getErrorLevelForAdditionalHtml ( $ html ) { if ( preg_match ( '#^<(i|b|ul|ol|li|h3)( style="[a-zA-Z0-9_\:\ \;\-]+")?>$#' , $ html ) ) { return Output :: ERROR ; } if ( in_array ( $ html , array ( '<em>' , '<strong>' , '<samp>' , '<u>' , '<br />' , '<br>' , '<hr>' ) ) ) { return Output :: NOTICE ; } if ( preg_match ( '#^<a href="([a-zA-Z0-9_\:\&\/\?\.\-\#\@]+)">$#' , $ html ) || preg_match ( '#^<a href="([a-zA-Z0-9_\:\&\/\?\.\-\#]+)" rel="external">$#' , $ html ) ) { return Output :: ERROR ; } return Output :: FATAL ; }
Returns the error level for a given HTML

Error:
- <i> should be <em>
- <b> should be <strong>
Notice:
- <em>
- <strong>
- <samp>
- <u>
- <br />
- <br>
- <hr>
Fatal:
- others

@param string $html
@return int Error level
Returns the error level for a given HTML