{"action":"closed","number":13072,"pull_request":{"url":"https://api.github.com/repos/yiisoft/yii2/pulls/13072","id":95279937,"html_url":"https://github.com/yiisoft/yii2/pull/13072","diff_url":"https://github.com/yiisoft/yii2/pull/13072.diff","patch_url":"https://github.com/yiisoft/yii2/pull/13072.patch","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/13072","number":13072,"state":"closed","locked":false,"title":"Fixed truncateHtml leaving extra tags (#7727)","user":{"login":"developeruz","id":8788118,"avatar_url":"https://avatars.githubusercontent.com/u/8788118?v=3","gravatar_id":"","url":"https://api.github.com/users/developeruz","html_url":"https://github.com/developeruz","followers_url":"https://api.github.com/users/developeruz/followers","following_url":"https://api.github.com/users/developeruz/following{/other_user}","gists_url":"https://api.github.com/users/developeruz/gists{/gist_id}","starred_url":"https://api.github.com/users/developeruz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/developeruz/subscriptions","organizations_url":"https://api.github.com/users/developeruz/orgs","repos_url":"https://api.github.com/users/developeruz/repos","events_url":"https://api.github.com/users/developeruz/events{/privacy}","received_events_url":"https://api.github.com/users/developeruz/received_events","type":"User","site_admin":false},"body":"| Q             | A\r\n| ------------- | ---\r\n| Is bugfix?    | yes\r\n| New feature?  | no\r\n| Breaks BC?    | no\r\n| Tests pass?   | yes\r\n| Fixed issues  | #7727\r\n\r\nDo not add to truncated text new open tags if required amount of characters is already found. \r\n ```php\r\nStringHelper::truncate('<p>This is a test</p><ul><li>bullet1</li><li>bullet2</li><li>bullet3</li><li>bullet4</li></ul>', 22, '...', null, true)\r\n```\r\n\r\nBefore fix: \r\n```\r\n<p>This is a test</p><ul><li>bullet1</li><li>b</li><li></li><li></li></ul>...\r\n```\r\nAfter fix: \r\n```\r\n<p>This is a test</p><ul><li>bullet1</li><li>b</li></ul>...\r\n```","created_at":"2016-11-25T10:17:52Z","updated_at":"2016-11-28T16:11:42Z","closed_at":"2016-11-28T16:11:42Z","merged_at":"2016-11-28T16:11:42Z","merge_commit_sha":"457e9241e39fd0c61a14e4e238486184abeb0bf8","assignee":{"login":"SilverFire","id":4499203,"avatar_url":"https://avatars.githubusercontent.com/u/4499203?v=3","gravatar_id":"","url":"https://api.github.com/users/SilverFire","html_url":"https://github.com/SilverFire","followers_url":"https://api.github.com/users/SilverFire/followers","following_url":"https://api.github.com/users/SilverFire/following{/other_user}","gists_url":"https://api.github.com/users/SilverFire/gists{/gist_id}","starred_url":"https://api.github.com/users/SilverFire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SilverFire/subscriptions","organizations_url":"https://api.github.com/users/SilverFire/orgs","repos_url":"https://api.github.com/users/SilverFire/repos","events_url":"https://api.github.com/users/SilverFire/events{/privacy}","received_events_url":"https://api.github.com/users/SilverFire/received_events","type":"User","site_admin":false},"assignees":[{"login":"SilverFire","id":4499203,"avatar_url":"https://avatars.githubusercontent.com/u/4499203?v=3","gravatar_id":"","url":"https://api.github.com/users/SilverFire","html_url":"https://github.com/SilverFire","followers_url":"https://api.github.com/users/SilverFire/followers","following_url":"https://api.github.com/users/SilverFire/following{/other_user}","gists_url":"https://api.github.com/users/SilverFire/gists{/gist_id}","starred_url":"https://api.github.com/users/SilverFire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SilverFire/subscriptions","organizations_url":"https://api.github.com/users/SilverFire/orgs","repos_url":"https://api.github.com/users/SilverFire/repos","events_url":"https://api.github.com/users/SilverFire/events{/privacy}","received_events_url":"https://api.github.com/users/SilverFire/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/20","html_url":"https://github.com/yiisoft/yii2/milestones/2.0.11","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/20/labels","id":1736699,"number":20,"title":"2.0.11","description":"","creator":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"open_issues":123,"closed_issues":88,"state":"open","created_at":"2016-04-28T15:04:50Z","updated_at":"2016-11-28T16:11:42Z","due_on":"2016-12-18T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/yiisoft/yii2/pulls/13072/commits","review_comments_url":"https://api.github.com/repos/yiisoft/yii2/pulls/13072/comments","review_comment_url":"https://api.github.com/repos/yiisoft/yii2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/13072/comments","statuses_url":"https://api.github.com/repos/yiisoft/yii2/statuses/0545bb6936ff922c904bf369231a1b89f2732616","head":{"label":"developeruz:7727-truncate-html-leaves-extra-tags","ref":"7727-truncate-html-leaves-extra-tags","sha":"0545bb6936ff922c904bf369231a1b89f2732616","user":{"login":"developeruz","id":8788118,"avatar_url":"https://avatars.githubusercontent.com/u/8788118?v=3","gravatar_id":"","url":"https://api.github.com/users/developeruz","html_url":"https://github.com/developeruz","followers_url":"https://api.github.com/users/developeruz/followers","following_url":"https://api.github.com/users/developeruz/following{/other_user}","gists_url":"https://api.github.com/users/developeruz/gists{/gist_id}","starred_url":"https://api.github.com/users/developeruz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/developeruz/subscriptions","organizations_url":"https://api.github.com/users/developeruz/orgs","repos_url":"https://api.github.com/users/developeruz/repos","events_url":"https://api.github.com/users/developeruz/events{/privacy}","received_events_url":"https://api.github.com/users/developeruz/received_events","type":"User","site_admin":false},"repo":{"id":27369222,"name":"yii2","full_name":"developeruz/yii2","owner":{"login":"developeruz","id":8788118,"avatar_url":"https://avatars.githubusercontent.com/u/8788118?v=3","gravatar_id":"","url":"https://api.github.com/users/developeruz","html_url":"https://github.com/developeruz","followers_url":"https://api.github.com/users/developeruz/followers","following_url":"https://api.github.com/users/developeruz/following{/other_user}","gists_url":"https://api.github.com/users/developeruz/gists{/gist_id}","starred_url":"https://api.github.com/users/developeruz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/developeruz/subscriptions","organizations_url":"https://api.github.com/users/developeruz/orgs","repos_url":"https://api.github.com/users/developeruz/repos","events_url":"https://api.github.com/users/developeruz/events{/privacy}","received_events_url":"https://api.github.com/users/developeruz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/developeruz/yii2","description":"Yii 2 framework main development repo","fork":true,"url":"https://api.github.com/repos/developeruz/yii2","forks_url":"https://api.github.com/repos/developeruz/yii2/forks","keys_url":"https://api.github.com/repos/developeruz/yii2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/developeruz/yii2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/developeruz/yii2/teams","hooks_url":"https://api.github.com/repos/developeruz/yii2/hooks","issue_events_url":"https://api.github.com/repos/developeruz/yii2/issues/events{/number}","events_url":"https://api.github.com/repos/developeruz/yii2/events","assignees_url":"https://api.github.com/repos/developeruz/yii2/assignees{/user}","branches_url":"https://api.github.com/repos/developeruz/yii2/branches{/branch}","tags_url":"https://api.github.com/repos/developeruz/yii2/tags","blobs_url":"https://api.github.com/repos/developeruz/yii2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/developeruz/yii2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/developeruz/yii2/git/refs{/sha}","trees_url":"https://api.github.com/repos/developeruz/yii2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/developeruz/yii2/statuses/{sha}","languages_url":"https://api.github.com/repos/developeruz/yii2/languages","stargazers_url":"https://api.github.com/repos/developeruz/yii2/stargazers","contributors_url":"https://api.github.com/repos/developeruz/yii2/contributors","subscribers_url":"https://api.github.com/repos/developeruz/yii2/subscribers","subscription_url":"https://api.github.com/repos/developeruz/yii2/subscription","commits_url":"https://api.github.com/repos/developeruz/yii2/commits{/sha}","git_commits_url":"https://api.github.com/repos/developeruz/yii2/git/commits{/sha}","comments_url":"https://api.github.com/repos/developeruz/yii2/comments{/number}","issue_comment_url":"https://api.github.com/repos/developeruz/yii2/issues/comments{/number}","contents_url":"https://api.github.com/repos/developeruz/yii2/contents/{+path}","compare_url":"https://api.github.com/repos/developeruz/yii2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/developeruz/yii2/merges","archive_url":"https://api.github.com/repos/developeruz/yii2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/developeruz/yii2/downloads","issues_url":"https://api.github.com/repos/developeruz/yii2/issues{/number}","pulls_url":"https://api.github.com/repos/developeruz/yii2/pulls{/number}","milestones_url":"https://api.github.com/repos/developeruz/yii2/milestones{/number}","notifications_url":"https://api.github.com/repos/developeruz/yii2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/developeruz/yii2/labels{/name}","releases_url":"https://api.github.com/repos/developeruz/yii2/releases{/id}","deployments_url":"https://api.github.com/repos/developeruz/yii2/deployments","created_at":"2014-12-01T08:10:44Z","updated_at":"2016-11-25T09:44:49Z","pushed_at":"2016-11-28T15:30:25Z","git_url":"git://github.com/developeruz/yii2.git","ssh_url":"git@github.com:developeruz/yii2.git","clone_url":"https://github.com/developeruz/yii2.git","svn_url":"https://github.com/developeruz/yii2","homepage":"http://www.yiiframework.com","size":40568,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"yiisoft:master","ref":"master","sha":"b5b62e7a0f24a25716d86ff4af577b586c90c566","user":{"login":"yiisoft","id":993323,"avatar_url":"https://avatars.githubusercontent.com/u/993323?v=3","gravatar_id":"","url":"https://api.github.com/users/yiisoft","html_url":"https://github.com/yiisoft","followers_url":"https://api.github.com/users/yiisoft/followers","following_url":"https://api.github.com/users/yiisoft/following{/other_user}","gists_url":"https://api.github.com/users/yiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiisoft/subscriptions","organizations_url":"https://api.github.com/users/yiisoft/orgs","repos_url":"https://api.github.com/users/yiisoft/repos","events_url":"https://api.github.com/users/yiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/yiisoft/received_events","type":"Organization","site_admin":false},"repo":{"id":3431193,"name":"yii2","full_name":"yiisoft/yii2","owner":{"login":"yiisoft","id":993323,"avatar_url":"https://avatars.githubusercontent.com/u/993323?v=3","gravatar_id":"","url":"https://api.github.com/users/yiisoft","html_url":"https://github.com/yiisoft","followers_url":"https://api.github.com/users/yiisoft/followers","following_url":"https://api.github.com/users/yiisoft/following{/other_user}","gists_url":"https://api.github.com/users/yiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiisoft/subscriptions","organizations_url":"https://api.github.com/users/yiisoft/orgs","repos_url":"https://api.github.com/users/yiisoft/repos","events_url":"https://api.github.com/users/yiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/yiisoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yiisoft/yii2","description":"Yii 2: The Fast, Secure and Professional PHP Framework","fork":false,"url":"https://api.github.com/repos/yiisoft/yii2","forks_url":"https://api.github.com/repos/yiisoft/yii2/forks","keys_url":"https://api.github.com/repos/yiisoft/yii2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yiisoft/yii2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yiisoft/yii2/teams","hooks_url":"https://api.github.com/repos/yiisoft/yii2/hooks","issue_events_url":"https://api.github.com/repos/yiisoft/yii2/issues/events{/number}","events_url":"https://api.github.com/repos/yiisoft/yii2/events","assignees_url":"https://api.github.com/repos/yiisoft/yii2/assignees{/user}","branches_url":"https://api.github.com/repos/yiisoft/yii2/branches{/branch}","tags_url":"https://api.github.com/repos/yiisoft/yii2/tags","blobs_url":"https://api.github.com/repos/yiisoft/yii2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yiisoft/yii2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yiisoft/yii2/git/refs{/sha}","trees_url":"https://api.github.com/repos/yiisoft/yii2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yiisoft/yii2/statuses/{sha}","languages_url":"https://api.github.com/repos/yiisoft/yii2/languages","stargazers_url":"https://api.github.com/repos/yiisoft/yii2/stargazers","contributors_url":"https://api.github.com/repos/yiisoft/yii2/contributors","subscribers_url":"https://api.github.com/repos/yiisoft/yii2/subscribers","subscription_url":"https://api.github.com/repos/yiisoft/yii2/subscription","commits_url":"https://api.github.com/repos/yiisoft/yii2/commits{/sha}","git_commits_url":"https://api.github.com/repos/yiisoft/yii2/git/commits{/sha}","comments_url":"https://api.github.com/repos/yiisoft/yii2/comments{/number}","issue_comment_url":"https://api.github.com/repos/yiisoft/yii2/issues/comments{/number}","contents_url":"https://api.github.com/repos/yiisoft/yii2/contents/{+path}","compare_url":"https://api.github.com/repos/yiisoft/yii2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yiisoft/yii2/merges","archive_url":"https://api.github.com/repos/yiisoft/yii2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yiisoft/yii2/downloads","issues_url":"https://api.github.com/repos/yiisoft/yii2/issues{/number}","pulls_url":"https://api.github.com/repos/yiisoft/yii2/pulls{/number}","milestones_url":"https://api.github.com/repos/yiisoft/yii2/milestones{/number}","notifications_url":"https://api.github.com/repos/yiisoft/yii2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yiisoft/yii2/labels{/name}","releases_url":"https://api.github.com/repos/yiisoft/yii2/releases{/id}","deployments_url":"https://api.github.com/repos/yiisoft/yii2/deployments","created_at":"2012-02-13T15:32:36Z","updated_at":"2016-11-28T14:30:21Z","pushed_at":"2016-11-28T16:11:42Z","git_url":"git://github.com/yiisoft/yii2.git","ssh_url":"git@github.com:yiisoft/yii2.git","clone_url":"https://github.com/yiisoft/yii2.git","svn_url":"https://github.com/yiisoft/yii2","homepage":"http://www.yiiframework.com","size":66257,"stargazers_count":9169,"watchers_count":9169,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5314,"mirror_url":null,"open_issues_count":735,"forks":5314,"open_issues":735,"watchers":9169,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/13072"},"html":{"href":"https://github.com/yiisoft/yii2/pull/13072"},"issue":{"href":"https://api.github.com/repos/yiisoft/yii2/issues/13072"},"comments":{"href":"https://api.github.com/repos/yiisoft/yii2/issues/13072/comments"},"review_comments":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/13072/comments"},"review_comment":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/13072/commits"},"statuses":{"href":"https://api.github.com/repos/yiisoft/yii2/statuses/0545bb6936ff922c904bf369231a1b89f2732616"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"SilverFire","id":4499203,"avatar_url":"https://avatars.githubusercontent.com/u/4499203?v=3","gravatar_id":"","url":"https://api.github.com/users/SilverFire","html_url":"https://github.com/SilverFire","followers_url":"https://api.github.com/users/SilverFire/followers","following_url":"https://api.github.com/users/SilverFire/following{/other_user}","gists_url":"https://api.github.com/users/SilverFire/gists{/gist_id}","starred_url":"https://api.github.com/users/SilverFire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SilverFire/subscriptions","organizations_url":"https://api.github.com/users/SilverFire/orgs","repos_url":"https://api.github.com/users/SilverFire/repos","events_url":"https://api.github.com/users/SilverFire/events{/privacy}","received_events_url":"https://api.github.com/users/SilverFire/received_events","type":"User","site_admin":false},"comments":1,"review_comments":3,"commits":1,"additions":12,"deletions":5,"changed_files":3}}
{"actor":{"display_login":"SilverFire"}}