{"action":"created","issue":{"url":"https://api.github.com/repos/abak-press/string_tools/issues/27","repository_url":"https://api.github.com/repos/abak-press/string_tools","labels_url":"https://api.github.com/repos/abak-press/string_tools/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/abak-press/string_tools/issues/27/comments","events_url":"https://api.github.com/repos/abak-press/string_tools/issues/27/events","html_url":"https://github.com/abak-press/string_tools/pull/27","id":269941949,"number":27,"title":"feature: сервис обрезания html-разметки","user":{"login":"DmitryBochkarev","id":1196822,"avatar_url":"https://avatars1.githubusercontent.com/u/1196822?v=4","gravatar_id":"","url":"https://api.github.com/users/DmitryBochkarev","html_url":"https://github.com/DmitryBochkarev","followers_url":"https://api.github.com/users/DmitryBochkarev/followers","following_url":"https://api.github.com/users/DmitryBochkarev/following{/other_user}","gists_url":"https://api.github.com/users/DmitryBochkarev/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitryBochkarev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitryBochkarev/subscriptions","organizations_url":"https://api.github.com/users/DmitryBochkarev/orgs","repos_url":"https://api.github.com/users/DmitryBochkarev/repos","events_url":"https://api.github.com/users/DmitryBochkarev/events{/privacy}","received_events_url":"https://api.github.com/users/DmitryBochkarev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-10-31T12:34:37Z","updated_at":"2017-11-01T06:01:32Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/abak-press/string_tools/pulls/27","html_url":"https://github.com/abak-press/string_tools/pull/27","diff_url":"https://github.com/abak-press/string_tools/pull/27.diff","patch_url":"https://github.com/abak-press/string_tools/pull/27.patch"},"body":"https://jira.railsc.ru/browse/SERVICES-2094\r\n\r\nпришлось написать велосипед, т.к. существующие гемы имеют 2 общие проблемы:\r\n- результат может выходить за лимит\r\n  1. для гема https://github.com/hgmnz/truncate_html такое происходит, если текст не содержит знаков препинания(`xxxxyyyyzzzz`)\r\n  2. гем https://github.com/jorgemanrubia/truncato не учитывает, что теги закрываются\r\n- нет возможности указать, что можно удалять теги `img`"},"comment":{"url":"https://api.github.com/repos/abak-press/string_tools/issues/comments/340994908","html_url":"https://github.com/abak-press/string_tools/pull/27#issuecomment-340994908","issue_url":"https://api.github.com/repos/abak-press/string_tools/issues/27","id":340994908,"user":{"login":"c1n1c","id":1822465,"avatar_url":"https://avatars2.githubusercontent.com/u/1822465?v=4","gravatar_id":"","url":"https://api.github.com/users/c1n1c","html_url":"https://github.com/c1n1c","followers_url":"https://api.github.com/users/c1n1c/followers","following_url":"https://api.github.com/users/c1n1c/following{/other_user}","gists_url":"https://api.github.com/users/c1n1c/gists{/gist_id}","starred_url":"https://api.github.com/users/c1n1c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c1n1c/subscriptions","organizations_url":"https://api.github.com/users/c1n1c/orgs","repos_url":"https://api.github.com/users/c1n1c/repos","events_url":"https://api.github.com/users/c1n1c/events{/privacy}","received_events_url":"https://api.github.com/users/c1n1c/received_events","type":"User","site_admin":false},"created_at":"2017-11-01T06:01:32Z","updated_at":"2017-11-01T06:01:32Z","author_association":"NONE","body":"выгрузили прайс - загрузили обратно, кирби все порезал, мне чет сильно не нравится идея с плавающим лимитом, ненадежно это"}}
{"actor":{"display_login":"c1n1c"}}