Bug 180709 the toke '<' changed to '>' if string is printed in preview
the token '<' in a string wil be printed as '>' Reproduction make a textfield and in the 'value-of' tag the next function: <value-of> var d = 10 var e = 12 var result if (d < e ) { result = "the variable d with a value of " + d + " < " + "the variable e with a value of " + e } result </value-of> gives the next result in the preview the variable d with a value of 10 > the variable e with a value of 12 3-apr-2007 15:19 the token '<' has changed to '>'
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/template/TemplateExecutor.java
text = encodeHtmlText( text );
		}
		buffer.append( text );
		return value;
	}
	protected String encodeHtmlText( String text )
	{
		return text.replaceAll( "<", "&gt;" );
	}
	public Object visitImage( TextTemplate.ImageNode node, Object value )
	{
		String imageName = null;
		String imageExt = null;
		Object imageContent = null;
		if ( TextTemplate.ImageNode.IMAGE_TYPE_EXPR == node.getType( ) )
		{
			imageContent = values.get( node.getExpr( ) );
		}
		else
		{
			imageName = node.getImageName( );
			if ( context != null )
			{
				ReportDesignHandle report = context.getDesign( );
				if ( report != null )
				{
					EmbeddedImage image = report.findImage( imageName );
					if ( image != null )
					{
						imageContent = image.getData( report.getModule( ) );