To show full text without truncating with more less feature

Viewed 247

We are working on Angular js application, in our application we have to implement read more and less functionality with text showing in table or div. To achieve this we have used READMORE.js, this working fine with normal text.

But we have to show some text in red color, so we have added span in the text :

<span class="my-red-text">any text any text.....</span>

Whenever above text is loaded with more option of readmore, then it truncate the text as :

y-red-text">any text any text.....

It do not show the text in red color, also cut the text, the text saved in database is correct, but loading text is truncating. Also this is not necessary span is present at start of the text, it can be anywhere within the text.

Truncating text in Application with readmore.js

How can I show all text without truncating ?

1 Answers
Related