Added function to get html code that results from any given search