Bug 168305 IsHostPage doesn't work for birt:report tag.[0603]
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/taglib/ReportTag.java
Pattern p = Pattern.compile( "<\\s*!--" ); 
		Matcher m = p.matcher( head );
		while ( m.find( ) )
		{
			int start = m.start( );
			int end = head.indexOf( "-->", start ); 
			if ( end > 0 )
			{
				String preTemp = head.substring( 0, start );
				String lastTemp = head.substring( end + 3 );
				head = preTemp + lastTemp;
			}
		}
		
		p = Pattern.compile( "<\\s*script[^\\>]*\\>", 
				Pattern.CASE_INSENSITIVE );
		m = p.matcher( head );
		while ( m.find( ) )
		{
			int start = m.start( );
			int end = head.toLowerCase( ).indexOf( "</script>", start ); 
			if ( end > 0 )
				script = script + head.substring( start, end + 9 ) + "\n"; 
		}
		return script;
	}
	/**
	 * Handle head content
	 * 
	 * @param content