{"action":"closed","issue":{"url":"https://api.github.com/repos/pragdave/earmark/issues/40","labels_url":"https://api.github.com/repos/pragdave/earmark/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/pragdave/earmark/issues/40/comments","events_url":"https://api.github.com/repos/pragdave/earmark/issues/40/events","html_url":"https://github.com/pragdave/earmark/issues/40","id":113651915,"number":40,"title":"Unescaped < and inline html","user":{"login":"RobertDober","id":75127,"avatar_url":"https://avatars.githubusercontent.com/u/75127?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertDober","html_url":"https://github.com/RobertDober","followers_url":"https://api.github.com/users/RobertDober/followers","following_url":"https://api.github.com/users/RobertDober/following{/other_user}","gists_url":"https://api.github.com/users/RobertDober/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertDober/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertDober/subscriptions","organizations_url":"https://api.github.com/users/RobertDober/orgs","repos_url":"https://api.github.com/users/RobertDober/repos","events_url":"https://api.github.com/users/RobertDober/events{/privacy}","received_events_url":"https://api.github.com/users/RobertDober/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-27T18:32:52Z","updated_at":"2015-11-21T20:48:31Z","closed_at":"2015-11-21T20:48:31Z","body":"I am not sure if this is a bug indeed.\r\n\r\nAnyway, without inline html `<` is perfectly transformed\r\n\r\n```elixir\r\niex(4)> Earmark.to_html \" a<x\"\r\n\"<p> a&lt;x</p>\\n\"\r\n```\r\n\r\nThat changes if the line contains html\r\n\r\n```elixir\r\niex(6)> Earmark.to_html \"x<max<br/>\"\r\n\"<p>x<max<br/></p>\\n\"\r\n```\r\n\r\nAn indication that it is a bug is maybe the following transformation, note the additional space\r\n\r\n```elixir\r\nEarmark.to_html \"x< max<br/>\"\r\n\"<p>x&lt; max<br/></p>\\n\"\r\n```\r\n\r\nAny opinions?"}}