text = text.replaceAll( "<html>", ""); text = text.replaceAll( "</html>", ""); text = text.replaceAll( "<body>", ""); text = text.replaceAll( "</body>", "");
text = text.replaceAll( "<[H|h][T|t][M|m][L|l]>", ""); text = text.replaceAll( "</[H|h][T|t][M|m][L|l]>", ""); text = text.replaceAll( "<[B|b][O|o][D|d][Y|y]>", ""); text = text.replaceAll( "</[B|b][O|o][D|d][Y|y]>", "");
	public void startForeign( IForeignContent foreign )	{		IStyle mergedStyle = foreign.getStyle( );		if ( peek( mergedStyle ) )		{			return;		}		logger.log( Level.FINE, "[HTMLReportEmitter] Start foreign" ); //$NON-NLS-1$		StringBuffer styleBuffer = new StringBuffer( );		DimensionType x = foreign.getX( );		DimensionType y = foreign.getY( );		DimensionType width = foreign.getWidth( );		DimensionType height = foreign.getHeight( );		int display;		display = checkElementType( x, y, width, height, mergedStyle,				styleBuffer );		// action		String tagName;		if ( handleAction( foreign.getHyperlinkAction( ) ) )		{			tagName = HTMLTags.TAG_A;			setDisplayProperty( display, DISPLAY_BLOCK | DISPLAY_INLINE_BLOCK,					styleBuffer );			AttributeBuilder.checkHyperlinkTextDecoration( mergedStyle,					styleBuffer );		}		else		{			tagName = openTagByType( display, DISPLAY_FLAG_ALL );			setDisplayProperty( display, DISPLAY_INLINE_BLOCK, styleBuffer );		}		setStyleName( foreign.getStyleClass( ) );		// bookmark		setBookmark( tagName, foreign.getBookmark( ) );		// title		writer.attribute( HTMLTags.ATTR_TITLE, foreign.getHelpText( ) );		// check 'can-shrink' property		handleShrink( display, mergedStyle, height, width, styleBuffer );		handleStyle( foreign, styleBuffer );		Object rawValue = foreign.getRawValue( );		String rawType = foreign.getRawType( );		boolean isHtml = IForeignContent.HTML_TYPE.equalsIgnoreCase( rawType );		String text = rawValue == null ? null : rawValue.toString( );		if ( isHtml )		{			text = text.replaceAll( "<html>", "");			text = text.replaceAll( "</html>", "");			text = text.replaceAll( "<body>", "");			text = text.replaceAll( "</body>", "");		}		writer.text( text, !isHtml, !isHtml );		writer.closeTag( tagName );	}