{"action":"closed","issue":{"url":"https://api.github.com/repos/pressbooks/pressbooks/issues/415","repository_url":"https://api.github.com/repos/pressbooks/pressbooks","labels_url":"https://api.github.com/repos/pressbooks/pressbooks/issues/415/labels{/name}","comments_url":"https://api.github.com/repos/pressbooks/pressbooks/issues/415/comments","events_url":"https://api.github.com/repos/pressbooks/pressbooks/issues/415/events","html_url":"https://github.com/pressbooks/pressbooks/issues/415","id":154053851,"number":415,"title":"Ampersand in subsection title causes XHTML validation error","user":{"login":"greatislander","id":605361,"avatar_url":"https://avatars.githubusercontent.com/u/605361?v=3","gravatar_id":"","url":"https://api.github.com/users/greatislander","html_url":"https://github.com/greatislander","followers_url":"https://api.github.com/users/greatislander/followers","following_url":"https://api.github.com/users/greatislander/following{/other_user}","gists_url":"https://api.github.com/users/greatislander/gists{/gist_id}","starred_url":"https://api.github.com/users/greatislander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greatislander/subscriptions","organizations_url":"https://api.github.com/users/greatislander/orgs","repos_url":"https://api.github.com/users/greatislander/repos","events_url":"https://api.github.com/users/greatislander/events{/privacy}","received_events_url":"https://api.github.com/users/greatislander/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pressbooks/pressbooks/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"greatislander","id":605361,"avatar_url":"https://avatars.githubusercontent.com/u/605361?v=3","gravatar_id":"","url":"https://api.github.com/users/greatislander","html_url":"https://github.com/greatislander","followers_url":"https://api.github.com/users/greatislander/followers","following_url":"https://api.github.com/users/greatislander/following{/other_user}","gists_url":"https://api.github.com/users/greatislander/gists{/gist_id}","starred_url":"https://api.github.com/users/greatislander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greatislander/subscriptions","organizations_url":"https://api.github.com/users/greatislander/orgs","repos_url":"https://api.github.com/users/greatislander/repos","events_url":"https://api.github.com/users/greatislander/events{/privacy}","received_events_url":"https://api.github.com/users/greatislander/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/pressbooks/pressbooks/milestones/9","html_url":"https://github.com/pressbooks/pressbooks/milestones/v3.6","labels_url":"https://api.github.com/repos/pressbooks/pressbooks/milestones/9/labels","id":1758011,"number":9,"title":"v3.6","description":"","creator":{"login":"greatislander","id":605361,"avatar_url":"https://avatars.githubusercontent.com/u/605361?v=3","gravatar_id":"","url":"https://api.github.com/users/greatislander","html_url":"https://github.com/greatislander","followers_url":"https://api.github.com/users/greatislander/followers","following_url":"https://api.github.com/users/greatislander/following{/other_user}","gists_url":"https://api.github.com/users/greatislander/gists{/gist_id}","starred_url":"https://api.github.com/users/greatislander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greatislander/subscriptions","organizations_url":"https://api.github.com/users/greatislander/orgs","repos_url":"https://api.github.com/users/greatislander/repos","events_url":"https://api.github.com/users/greatislander/events{/privacy}","received_events_url":"https://api.github.com/users/greatislander/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":1,"state":"open","created_at":"2016-05-10T14:54:53Z","updated_at":"2016-05-10T16:54:13Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-05-10T16:46:26Z","updated_at":"2016-05-10T16:54:13Z","closed_at":"2016-05-10T16:54:13Z","body":"### Prerequisites\r\n\r\n* [x] Can you reproduce the behavior you wish to address with [all other plugins deactivated](http://codex.wordpress.org/Multisite_Network_Administration#Plugins)?\r\n* [x] Are you running the [latest version of Pressbooks](http://wordpress.org/plugins/pressbooks/) and the [latest version of WordPress](http://codex.wordpress.org/Upgrading_WordPress)?\r\n* [x] Are you experiencing this issue with one of our built-in root or book themes?\r\n* [x] Did you [perform a cursory search](https://github.com/issues?q=+is%3Aissue+repo%3Apressbooks%2Fpressbooks) to see if your bug or enhancement is already listed?\r\n\r\n### Description\r\n\r\nShould be properly encoded, but it isn't.\r\n\r\n### Steps to Reproduce\r\n\r\n1. Enable section parsing.\r\n2. Insert an `<h1>` element within a chapter that includes an ampersand.\r\n3. Try to export XHTML.\r\n\r\n**Expected behavior:** XHTML exports and validates.\r\n\r\n**Actual behavior:** The following error is returned:\r\n\r\nThis page contains the following errors:\r\n\r\n`error on line XX at column XXX: xmlParseEntityRef: no name`\r\n\r\n### Themes\r\n\r\nRoot Theme: Pressbooks Publisher\r\nBook Theme: Luther\r\n\r\n### Versions\r\n\r\nPressbooks: 3.5.1\r\nWordPress: 4.5.2\r\nPHP: 5.6"}}