{"action":"created","issue":{"url":"https://api.github.com/repos/Juris-M/citeproc-js/issues/3","repository_url":"https://api.github.com/repos/Juris-M/citeproc-js","labels_url":"https://api.github.com/repos/Juris-M/citeproc-js/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Juris-M/citeproc-js/issues/3/comments","events_url":"https://api.github.com/repos/Juris-M/citeproc-js/issues/3/events","html_url":"https://github.com/Juris-M/citeproc-js/issues/3","id":149616898,"number":3,"title":"Citation only, no wrapped html -- How do I make this happen?","user":{"login":"dsifford","id":5240018,"avatar_url":"https://avatars.githubusercontent.com/u/5240018?v=3","gravatar_id":"","url":"https://api.github.com/users/dsifford","html_url":"https://github.com/dsifford","followers_url":"https://api.github.com/users/dsifford/followers","following_url":"https://api.github.com/users/dsifford/following{/other_user}","gists_url":"https://api.github.com/users/dsifford/gists{/gist_id}","starred_url":"https://api.github.com/users/dsifford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsifford/subscriptions","organizations_url":"https://api.github.com/users/dsifford/orgs","repos_url":"https://api.github.com/users/dsifford/repos","events_url":"https://api.github.com/users/dsifford/events{/privacy}","received_events_url":"https://api.github.com/users/dsifford/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-20T00:06:01Z","updated_at":"2016-04-29T04:16:39Z","closed_at":null,"body":"In the demo, the response object returned from `makeBibliography` is an array of html..\r\n\r\n```\r\n<div class=\"csl-entry\"> <div class=\"csl-left-margin\">1. </div><div class=\"csl-right-inline\">Knuth DE. <i>Digital Typography</i>. Center for the Study of Language and Information; 1998.</div> </div>\r\n```\r\n\r\nHow do I get it to return JUST the inner formatting? I want to handle the presentation myself.\r\n\r\nThis is what I want:\r\n```\r\nKnuth DE. <i>Digital Typography</i>. Center for the Study of Language and Information; 1998.\r\n```\r\n\r\nAny help is apprecitated! Thanks"},"comment":{"url":"https://api.github.com/repos/Juris-M/citeproc-js/issues/comments/215623005","html_url":"https://github.com/Juris-M/citeproc-js/issues/3#issuecomment-215623005","issue_url":"https://api.github.com/repos/Juris-M/citeproc-js/issues/3","id":215623005,"user":{"login":"dsifford","id":5240018,"avatar_url":"https://avatars.githubusercontent.com/u/5240018?v=3","gravatar_id":"","url":"https://api.github.com/users/dsifford","html_url":"https://github.com/dsifford","followers_url":"https://api.github.com/users/dsifford/followers","following_url":"https://api.github.com/users/dsifford/following{/other_user}","gists_url":"https://api.github.com/users/dsifford/gists{/gist_id}","starred_url":"https://api.github.com/users/dsifford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsifford/subscriptions","organizations_url":"https://api.github.com/users/dsifford/orgs","repos_url":"https://api.github.com/users/dsifford/repos","events_url":"https://api.github.com/users/dsifford/events{/privacy}","received_events_url":"https://api.github.com/users/dsifford/received_events","type":"User","site_admin":false},"created_at":"2016-04-29T04:16:39Z","updated_at":"2016-04-29T04:16:39Z","body":"FWIW, this is how I'm doing it right now:\r\n\r\n```ts\r\n/**\r\n     * Removes outer HTML formatting served from citeproc, sparing inner `<i>` or `<a>` tags.\r\n     * @param  {string} ref The reference payload from citeproc.\r\n     * @return {string}     A formatted reference string without outer HTML.\r\n     */\r\n    trimHTML(ref: string): string {\r\n        return ref\r\n            .replace(/<(?!(i|\\/i|a|\\/a)).+?>/g, '')\r\n            .trim()\r\n            .replace(/^\\d+\\.\\s?/, '');\r\n    }\r\n```"}}