diff --git a/pelican/plugins/search/search.py b/pelican/plugins/search/search.py index 5c2355b..a8b0511 100644 --- a/pelican/plugins/search/search.py +++ b/pelican/plugins/search/search.py @@ -69,11 +69,13 @@ def generate_output(self, writer): page_to_index = page.save_as if self.search_mode == "source": page_to_index = page.relative_source_path + # Escape double quotes in title + title = striptags(page.title).replace('"', '\\"') input_file = f""" [[input.files]] path = "{page_to_index}" url = "/{page.url}" - title = "{striptags(page.title)}" + title = "{title}" """ input_files = "".join([input_files, input_file])