src/Easy/Element/LabelText.php
public function render()
    {
        $value = $this->text ? $this->getText() : $this->value;
        if ($value === null || $value === "") {// why do we ignore empty?
            return "";
        }

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

        if ($this->translatable == 'Y') {
            $value = $this->translateString($value);
        }
        $value_org = strip_tags($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) . '...';
                }
            }
        }

        if ($value !== null) {
            if ($this->displayFormat) {
                $value = sprintf($this->displayFormat, $value);
            }
            if ($this->percent == 'Y') {
                $value = sprintf("%.2f", $value * 100) . '%';
            } else {
                if (strtoupper($this->stripTags) == 'Y') {
                    $value = strip_tags($value);
                } else {
                    $value = htmlentities($value, ENT_QUOTES, "UTF-8");
                }
            }

            if ($this->link) {
                $link = $this->getLink();
                $target = $this->getTarget();
                //$sHTML = "<a href=\"$link\" onclick=\"SetOnLoadNewView();\" $style>" . $val . "</a>";
                $sHTML = "<a title=\"$value_org\" id=\"$id\" href=\"$link\" $target $func $style $this->htmlAttr>" . $value . "</a>";
            } else {
                $sHTML = "<span  title=\"$value_org\" $style $func $this->htmlAttr>" . $value . "</span>";
            }
            if ($this->backgroundColor) {
                $bgcolor = $this->getBackgroundColor();
                if ($bgcolor) {
                    $sHTML = "<div style=\"background-color:#" . $bgcolor . ";text-indent:10px;-moz-border-radius: 4px;border-radius: 4px;\" >$sHTML</div>";
                }
            }
        }

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

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

        if ($this->translatable == 'Y') {
            $value = $this->translateString($value);
        }
        $value_org = strip_tags($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) . '...';
                }
            }
        }

        if ($value !== null) {
            if ($this->displayFormat) {
                $value = sprintf($this->displayFormat, $value);
            }
            if ($this->percent == 'Y') {
                $value = sprintf("%.2f", $value * 100) . '%';
            } else {
                if (strtoupper($this->stripTags) == 'Y') {
                    $value = strip_tags($value);
                } else {
                    $value = htmlentities($value, ENT_QUOTES, "UTF-8");
                }
            }

            if ($this->link) {
                $link = $this->getLink();
                $target = $this->getTarget();
                //$sHTML = "<a href=\"$link\" onclick=\"SetOnLoadNewView();\" $style>" . $val . "</a>";
                $sHTML = "<a title=\"$value_org\" id=\"$id\" href=\"$link\" $target $func $style $this->htmlAttr>" . $value . "</a>";
            } else {
                $sHTML = "<span  title=\"$value_org\" $style $func $this->htmlAttr>" . $value . "</span>";
            }
            if ($this->backgroundColor) {
                $bgcolor = $this->getBackgroundColor();
                if ($bgcolor) {
                    $sHTML = "<div style=\"background-color:#" . $bgcolor . ";text-indent:10px;-moz-border-radius: 4px;border-radius: 4px;\" >$sHTML</div>";
                }
            }
        }

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

@return string HTML text