diff --git a/src/search.cpp b/src/search.cpp index 802e15c..75279f4 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -92,6 +92,10 @@ std::vector search(const fs::path &filepath, { file = cleanup_text(helpers::unescape_html(document)); } + else + { + file.text = document; + } } string::const_iterator begin{file.text.begin()};