decode html entities
[ikiwiki.git] / IkiWiki / Plugin / search.pm
index 3ea4c6b7f01fcb644c217c7fa9e38bde22a2406d..1ee1b8fdb9bf52bae52d67b517f0a2032287e23d 100644 (file)
@@ -92,6 +92,9 @@ sub index (@) { #{{{
                }
        }
        $sample=~s/\n/ /g;
+       # Decode html entities in the sample since omega encodes them.
+       eval q{use HTML::Entities};
+       $sample=decode_entities($sample);
        
        # data used by omega
        $doc->set_data(