obviously the dynamic part can be searched with sql. the static part has two possbile solutions...
write a script that grabs all the contect outside of the html tags and save it to a db (hint use regex) (done only when new pages are added or when pages are updated)
or
use regex to scrape the pages in situ (done with every search)