{"action":"created","issue":{"url":"https://api.github.com/repos/PHPOffice/PHPWord/issues/514","labels_url":"https://api.github.com/repos/PHPOffice/PHPWord/issues/514/labels{/name}","comments_url":"https://api.github.com/repos/PHPOffice/PHPWord/issues/514/comments","events_url":"https://api.github.com/repos/PHPOffice/PHPWord/issues/514/events","html_url":"https://github.com/PHPOffice/PHPWord/issues/514","id":65008002,"number":514,"title":"AddHTML & or &amp; breaks","user":{"login":"klompenrunner","id":11701178,"avatar_url":"https://avatars.githubusercontent.com/u/11701178?v=3","gravatar_id":"","url":"https://api.github.com/users/klompenrunner","html_url":"https://github.com/klompenrunner","followers_url":"https://api.github.com/users/klompenrunner/followers","following_url":"https://api.github.com/users/klompenrunner/following{/other_user}","gists_url":"https://api.github.com/users/klompenrunner/gists{/gist_id}","starred_url":"https://api.github.com/users/klompenrunner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klompenrunner/subscriptions","organizations_url":"https://api.github.com/users/klompenrunner/orgs","repos_url":"https://api.github.com/users/klompenrunner/repos","events_url":"https://api.github.com/users/klompenrunner/events{/privacy}","received_events_url":"https://api.github.com/users/klompenrunner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-03-29T01:05:59Z","updated_at":"2016-01-11T12:26:12Z","closed_at":null,"body":"Taken from: Sample_26_Html.php\r\n\r\nThe sample works:\r\n'&lt;p&gt;Some well formed HTML snippet needs to be used&lt;p&gt;';\r\n\r\nBad HTML like this as expected breaks the XML:\r\n'&lt;p&gt;Some well formed HTML snippet needs &amp; to be used&lt;p&gt;';\r\n\r\nWhen I add an HTML ampersand it breaks the XML too:\r\n'&lt;p&gt;Some well formed HTML snippet needs &amp;amp; to be used&lt;p&gt;';\r\n\r\nBut double escaping the ampersand makes it work.\r\n'&lt;p&gt;Some well formed HTML snippet needs &amp;amp;amp; to be used&lt;p&gt;';\r\n\r\nTested with -master and -developer today."},"comment":{"url":"https://api.github.com/repos/PHPOffice/PHPWord/issues/comments/170526629","html_url":"https://github.com/PHPOffice/PHPWord/issues/514#issuecomment-170526629","issue_url":"https://api.github.com/repos/PHPOffice/PHPWord/issues/514","id":170526629,"user":{"login":"dzafel","id":765607,"avatar_url":"https://avatars.githubusercontent.com/u/765607?v=3","gravatar_id":"","url":"https://api.github.com/users/dzafel","html_url":"https://github.com/dzafel","followers_url":"https://api.github.com/users/dzafel/followers","following_url":"https://api.github.com/users/dzafel/following{/other_user}","gists_url":"https://api.github.com/users/dzafel/gists{/gist_id}","starred_url":"https://api.github.com/users/dzafel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzafel/subscriptions","organizations_url":"https://api.github.com/users/dzafel/orgs","repos_url":"https://api.github.com/users/dzafel/repos","events_url":"https://api.github.com/users/dzafel/events{/privacy}","received_events_url":"https://api.github.com/users/dzafel/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T12:26:12Z","updated_at":"2016-01-11T12:26:12Z","body":"@GMTA yeah, I saw that thread. Unfortunatelly I don't have any time to wait for a fix, I made a dirty-fix for now - I cloned `Html` class, but I also found `pandoc` software and I think I'm going to switch to it, PHPWord is way too unstable, even if they \"consider introducing escaping components in the next release\"..."}}