From: Joey Hess Date: Wed, 4 Jun 2008 05:34:26 +0000 (-0400) Subject: decode html entities X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/4a51e384eb173bcf616d7d7e54476c609164e05f 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(