A Simple Jquery plugin for dom element text shortening
Include text-ellipses.jquery.js into your html file
<script src="src/text-ellipses.jquery.js"></script>
$('.heading').textEllipses("Lorem ipsum dolor sit amet",5, options)
{
hoverExpand: true // Default false
showTitle: false, // Default true
className: 'some-class-name', // Default text-ellipsis-element
dataValueName: 'some-data-field-name', // Default real-value
}