as you can see, to show results Im using the title of every page found but I also want to add the line where it found this particular string the user searched for... (google style). I tried doing it locally with grep thinking to make it trough my script exporting results to a file then importing it to a var and printing the results, but it shows the html tags and everything.
Any ideas?