src/Easy/Element/LabelTextarea.php
public function render()
    {
       $value = $this->text ? $this->getText() : $this->value;
        
        if ($value == null || $value =="")
            return "";

        $style = $this->getStyle();
        $id = $this->objectName;
        $func = $this->getFunction();

        if ($this->translatable == 'Y')
            $value = $this->translateString($value);
        
        if((int)$this->maxLength>0){
	        if(function_exists('mb_strlen') && function_exists('mb_substr')){
	        	if(mb_strlen($value,'UTF8') > (int)$this->maxLength){
	        		$value = mb_substr($value,0,(int)$this->maxLength,'UTF8').'...';
	        	}        	
	        }else{
	        	if(strlen($value) > (int)$this->maxLength){
	        		$value = substr($value,0,(int)$this->maxLength).'...';
	        	}         	
	        }
        }
        /*
         * it is important converting not just nl2br
         *  
         */
               
        //$value = htmlentities($value);
        
        $value = htmlentities($value, ENT_QUOTES, "UTF-8");
        $value = str_replace("\n\n","\n<img src=\"".Openbizx::$app->getImageUrl()."/spacer.gif\" style=\"display:block;height:10px;\">",$value);
        $value = nl2br($value);
        
        if ($value!=null)
        {
        	if($this->displayFormat)
        	{
        		$value = sprintf($this->displayFormat,$value);
        	}
        	if($this->percent=='Y')
        	{
        		$value = sprintf("%.2f",$value*100).'%';
        	}
        	
            if ($this->link)
            {
                $link = $this->getLink();
                $target = $this->getTarget();
                //$sHTML = "<a href=\"$link\" onclick=\"SetOnLoadNewView();\" $style>" . $val . "</a>";
                $sHTML = "<a id=\"$id\" href=\"$link\" $target $func $style>" . $value . "</a>";
            }
            else
            {
                $sHTML = "<span $style $func>" . $value . "</span>";
            }
        }

        return $sHTML;    }
public function render()
    {
       $value = $this->text ? $this->getText() : $this->value;
        
        if ($value == null || $value =="")
            return "";

        $style = $this->getStyle();
        $id = $this->objectName;
        $func = $this->getFunction();

        if ($this->translatable == 'Y')
            $value = $this->translateString($value);
        
        if((int)$this->maxLength>0){
	        if(function_exists('mb_strlen') && function_exists('mb_substr')){
	        	if(mb_strlen($value,'UTF8') > (int)$this->maxLength){
	        		$value = mb_substr($value,0,(int)$this->maxLength,'UTF8').'...';
	        	}        	
	        }else{
	        	if(strlen($value) > (int)$this->maxLength){
	        		$value = substr($value,0,(int)$this->maxLength).'...';
	        	}         	
	        }
        }
        /*
         * it is important converting not just nl2br
         *  
         */
               
        //$value = htmlentities($value);
        
        $value = htmlentities($value, ENT_QUOTES, "UTF-8");
        $value = str_replace("\n\n","\n<img src=\"".Openbizx::$app->getImageUrl()."/spacer.gif\" style=\"display:block;height:10px;\">",$value);
        $value = nl2br($value);
        
        if ($value!=null)
        {
        	if($this->displayFormat)
        	{
        		$value = sprintf($this->displayFormat,$value);
        	}
        	if($this->percent=='Y')
        	{
        		$value = sprintf("%.2f",$value*100).'%';
        	}
        	
            if ($this->link)
            {
                $link = $this->getLink();
                $target = $this->getTarget();
                //$sHTML = "<a href=\"$link\" onclick=\"SetOnLoadNewView();\" $style>" . $val . "</a>";
                $sHTML = "<a id=\"$id\" href=\"$link\" $target $func $style>" . $value . "</a>";
            }
            else
            {
                $sHTML = "<span $style $func>" . $value . "</span>";
            }
        }

        return $sHTML;    }
Render, draw the element according to the mode

@return string HTML text