From: Joey Hess Date: Wed, 4 Jun 2008 05:34:26 +0000 (-0400) Subject: decode html entities X-Git-Tag: 2.49~19 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4a51e384eb173bcf616d7d7e54476c609164e05f;p=ikiwiki.git decode html entities --- 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(