Close open HTML tags in search snippet