{"action":"created","issue":{"url":"https://api.github.com/repos/lorenooliveira/ng-text-truncate/issues/5","labels_url":"https://api.github.com/repos/lorenooliveira/ng-text-truncate/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/lorenooliveira/ng-text-truncate/issues/5/comments","events_url":"https://api.github.com/repos/lorenooliveira/ng-text-truncate/issues/5/events","html_url":"https://github.com/lorenooliveira/ng-text-truncate/issues/5","id":43219761,"number":5,"title":"not working when text is html","user":{"login":"michaelmel","id":8831050,"avatar_url":"https://avatars.githubusercontent.com/u/8831050?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelmel","html_url":"https://github.com/michaelmel","followers_url":"https://api.github.com/users/michaelmel/followers","following_url":"https://api.github.com/users/michaelmel/following{/other_user}","gists_url":"https://api.github.com/users/michaelmel/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelmel/subscriptions","organizations_url":"https://api.github.com/users/michaelmel/orgs","repos_url":"https://api.github.com/users/michaelmel/repos","events_url":"https://api.github.com/users/michaelmel/events{/privacy}","received_events_url":"https://api.github.com/users/michaelmel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-09-19T09:19:00Z","updated_at":"2015-07-23T15:05:30Z","closed_at":null,"body":"seems like there is a problem when the text string contains HTML."},"comment":{"url":"https://api.github.com/repos/lorenooliveira/ng-text-truncate/issues/comments/124134197","html_url":"https://github.com/lorenooliveira/ng-text-truncate/issues/5#issuecomment-124134197","issue_url":"https://api.github.com/repos/lorenooliveira/ng-text-truncate/issues/5","id":124134197,"user":{"login":"octavioamu","id":1358093,"avatar_url":"https://avatars.githubusercontent.com/u/1358093?v=3","gravatar_id":"","url":"https://api.github.com/users/octavioamu","html_url":"https://github.com/octavioamu","followers_url":"https://api.github.com/users/octavioamu/followers","following_url":"https://api.github.com/users/octavioamu/following{/other_user}","gists_url":"https://api.github.com/users/octavioamu/gists{/gist_id}","starred_url":"https://api.github.com/users/octavioamu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octavioamu/subscriptions","organizations_url":"https://api.github.com/users/octavioamu/orgs","repos_url":"https://api.github.com/users/octavioamu/repos","events_url":"https://api.github.com/users/octavioamu/events{/privacy}","received_events_url":"https://api.github.com/users/octavioamu/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T15:05:30Z","updated_at":"2015-07-23T15:05:30Z","body":"same issue here, also if the last charset is a break line you get  ;&#10;  and if you use \r\nng-text-truncate=\"longtext | linky:'_blank'\" and the link is exactly in the limit of characters you get that strange behavior "}}