How to make extras lines hide with "..." ellipsis?
my code is
<p className="detail">
random string The Glenwood Plan boasts 3 bedrooms -2 baths. Interior Paint is Sherwin Williams Agreeable Gray with Extra White Ceilings boasts 3 bedrooms -2 baths. Interior Paint is Sherwin Williams Agreeable Gray with Extra White Ceilings boasts 3 bedrooms -2 baths. Interior Paint is Sherwin Williams Agreeable Gray with Extra White Ceilings boasts 3 bedrooms -2 baths. Interior Paint is Sherwin Williams Agreeable Gray with Extra White Ceilings boasts 3 bedrooms -2 baths. Interior Paint is Sherwin Williams Agreeable Gray with Extra White Ceilings
</p>
output in html page
random string The Glenwood Plan boasts 3 bedrooms -2 baths. Interior Paint is Sherwin Williams Agreeable Gray with Extra White Ceilings boasts 3 bedrooms -2 baths. Interior Paint is Sherwin Williams Agreeable Gray with Extra White Ceilings boasts 3 bedrooms -2 baths. Interior Paint is Sherwin Williams Agreeable Gray with Extra White Ceilings boasts 3 bedrooms -2 baths. Interior Paint is Sherwin Williams Agreeable Gray with Extra White Ceilings boasts 3 bedrooms -2 baths. Interior Paint is Sherwin Williams Agreeable Gray with Extra White Ceilings
but I want to show output in just two lines and other words I don't want to show
So new output i want to show is
random string The Glenwood Plan boasts 3 bedrooms -2 baths. Interior Paint is Sherwin Williams Agreeable Gray with Extra White Ceilings boasts 3 bedrooms -2 baths. Interior...
and at last I want to show ...
so any code for this ?