public static function generateEllipsisAndTooltipMarkupFor($textToTruncate, $charLimit, $placement) {
        $truncatedData = null;
        if (strlen($textToTruncate) > intval($charLimit)) {
            //We would have to truncate
            $truncatedData = array(
                'source' => $textToTruncate,
                'truncated' => substr($textToTruncate, 0, $charLimit - 3) . '...'
            );
        } else {
            //Return the string as it is
            $truncatedData = array(
                'source' => $textToTruncate,
                'truncated' => ''
            );
        }

        if (trim($truncatedData['truncated']) !== '') {
            echo $truncatedData['truncated'];
            echo '<input type="hidden" class="ellipsis-tooltip" value="' . $truncatedData['source'] . '" placement="' . $placement . '" >';
        } else {
            echo $truncatedData['source'];
        }
    }