{"action":"closed","issue":{"url":"https://api.github.com/repos/getgrav/grav-plugin-simplesearch/issues/21","labels_url":"https://api.github.com/repos/getgrav/grav-plugin-simplesearch/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/getgrav/grav-plugin-simplesearch/issues/21/comments","events_url":"https://api.github.com/repos/getgrav/grav-plugin-simplesearch/issues/21/events","html_url":"https://github.com/getgrav/grav-plugin-simplesearch/issues/21","id":114405321,"number":21,"title":"Strip tags from the page content before searching query string","user":{"login":"maxlysenko","id":12494082,"avatar_url":"https://avatars.githubusercontent.com/u/12494082?v=3","gravatar_id":"","url":"https://api.github.com/users/maxlysenko","html_url":"https://github.com/maxlysenko","followers_url":"https://api.github.com/users/maxlysenko/followers","following_url":"https://api.github.com/users/maxlysenko/following{/other_user}","gists_url":"https://api.github.com/users/maxlysenko/gists{/gist_id}","starred_url":"https://api.github.com/users/maxlysenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxlysenko/subscriptions","organizations_url":"https://api.github.com/users/maxlysenko/orgs","repos_url":"https://api.github.com/users/maxlysenko/repos","events_url":"https://api.github.com/users/maxlysenko/events{/privacy}","received_events_url":"https://api.github.com/users/maxlysenko/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-31T11:36:35Z","updated_at":"2015-11-12T01:57:58Z","closed_at":"2015-11-12T01:57:58Z","body":"SimpleSearch doesn't find results because of html tags in page content.\r\nFor example we have a page with the following markdown content:\r\n```md\r\n## Grav **is** _awesome_!\r\n```\r\nThen if we try to search `grav is awesome`, there will be no results because `$cpage->content()` returns:\r\n```html\r\n<h2>Grav <strong>is</strong> <em>awesome</em>!</h2>\r\n```\r\nBut if we strip tags from content, e.g. `strip_tags($cpage->content())` the query string `grav is awesome` will be found.\r\n"}}