To remove any code from search results you need to give some short description of pages. Go to each page edit screen, from screen options check excerpt and scroll down you will see a textarea with Excerpt. Write some small description of the page, and that description will be avaialbe in search results without code.