decode html entities
authorJoey Hess <joey@kodama.kitenet.net>
Wed, 4 Jun 2008 05:34:26 +0000 (01:34 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Wed, 4 Jun 2008 05:34:26 +0000 (01:34 -0400)
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(