GitHub PullRequestReviewCommentEvent at 2014-02-14 10:00:45
Repository: tengine
Actor: cfsego
Payload: {"comment":{"url":"https://api.github.com/repos/alibaba/tengine/pulls/comments/9743707","id":9743707,"diff_hunk":"@@ -107,3 +107,50 @@ result:\n     <script type=\"text/javascript\">str.replace(/     /,\"hello\");</script>\n     <style type=\"text/css\">body{font-size:20px;line-height:150%;}</style>\n \n+\n+## Trim Rule\n+\n+### html\n+##### whitespace\n++ remove '\\r'.\n++ replace '\\t' with space.\n++ replace multiple spaces with a single space.\n++ replace multiple '\\n' with a single '\\n'.\n++ replace multiple '\\n' and '\\t' with a single space in tag.\n++ not trim quoted strings in tag.\n++ not trim the contents that enclosed by the tag `pre`,`textarea`,`script` and `style`,as well as IE/SSI/ESI comments.  \n+\n+##### comment\n++ remove html comment(`<!-- -->`)  except for IE/SSI/ESI comments.  \n+  IE comment: `<!--[if  <![endif]-->`  \n+  SSI comment: `<!--#  -->`  \n+  ESI comment: `<!--esi  -->`  \n+\n+\n+### javascript\n+`<script type=\"text/javascript\">` or `<script>` will be identified as javascript.","path":"docs/modules/ngx_http_trim_filter_module.md","position":25,"original_position":25,"commit_id":"5c0b46ad647767db70495ffe826d9a4acc2935a0","original_commit_id":"5c0b46ad647767db70495ffe826d9a4acc2935a0","user":{"login":"cfsego","id":1188207,"avatar_url":"https://gravatar.com/avatar/d8334c856119d9fac1e4159c5614787b?d=https%3A%2F%2Fidenticons.github.com%2F174fcd74274415cc5e3c0f83f07370db.png&r=x","gravatar_id":"d8334c856119d9fac1e4159c5614787b","url":"https://api.github.com/users/cfsego","html_url":"https://github.com/cfsego","followers_url":"https://api.github.com/users/cfsego/followers","following_url":"https://api.github.com/users/cfsego/following{/other_user}","gists_url":"https://api.github.com/users/cfsego/gists{/gist_id}","starred_url":"https://api.github.com/users/cfsego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfsego/subscriptions","organizations_url":"https://api.github.com/users/cfsego/orgs","repos_url":"https://api.github.com/users/cfsego/repos","events_url":"https://api.github.com/users/cfsego/events{/privacy}","received_events_url":"https://api.github.com/users/cfsego/received_events","type":"User","site_admin":false},"body":"contents enclosed by `<script type=\"text/javascript\">` or `<script>` will be identified as javascript.","created_at":"2014-02-14T10:00:45Z","updated_at":"2014-02-14T10:00:45Z","html_url":"https://github.com/alibaba/tengine/pull/404#discussion_r9743707","pull_request_url":"https://api.github.com/repos/alibaba/tengine/pulls/404","_links":{"self":{"href":"https://api.github.com/repos/alibaba/tengine/pulls/comments/9743707"},"html":{"href":"https://github.com/alibaba/tengine/pull/404#discussion_r9743707"},"pull_request":{"href":"https://api.github.com/repos/alibaba/tengine/pulls/404"}}}}