You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think your suggestion makes a lot of sense. In fact, I think a variation of this makes sense for the plain-text clipper too:
clip('\nabc',3,{maxLines: 1,})
I didn’t actually check what it returns, but I’m afraid you’ll only get ellipsis, while ”abc” would be a more desirable output in many cases.
I’m thinking it might make sense to introduce an omitEmptyLines option which in the HTML would omit empty paragraphs too, including when such a paragraph is created by stripping other tags.
Hey, thanks for greet package, @arendjr !
It would be helpful if text-clipper has option to strip empty tag.
For example:
returns
'<p></p>'
which isn't what i wanted.
I want this:
'<p>abc</p>'
Can you provide me a workaround, please! Thank you!
The text was updated successfully, but these errors were encountered: