From 4a51e384eb173bcf616d7d7e54476c609164e05f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 4 Jun 2008 01:34:26 -0400 Subject: [PATCH] decode html entities --- IkiWiki/Plugin/search.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IkiWiki/Plugin/search.pm b/IkiWiki/Plugin/search.pm index 3ea4c6b7f..1ee1b8fdb 100644 --- a/IkiWiki/Plugin/search.pm +++ b/IkiWiki/Plugin/search.pm @@ -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( -- 2.39.5