I need to display some text on two lines, and add some \"...\" if the text is too long.
Example :
This is some long text and we need to show it on only two
You can do a slice and embed it along with the dots while rendering, and play around with the css width to make it two lined.
.js file
var text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor"
.ejs file
<%= text.slice(0,30)+" ..." %>