igreulich / angular-truncate

An angular filter to truncate strings.
http://igreulich.github.io/angular-truncate
MIT License
14 stars 5 forks source link

maintain html tags when truncating #1

Open maeishoj opened 10 years ago

maeishoj commented 10 years ago

Hey there.

I found myself needing this library and it helps me a lot.

However I need to truncate some html that contains tags and it would be great it this could handle them. Meaning that if i say limit this html string to 60 chars and that happens to break a tag in the middle, this should take everything until that tag is closed (">").

Do you think would be a possible addition on your end?

igreulich commented 10 years ago

I will take a look at that over the next couple of days.

ruisilva450 commented 8 years ago

So?