diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-06-04 01:34:26 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-06-04 01:34:26 -0400 |
commit | 4a51e384eb173bcf616d7d7e54476c609164e05f (patch) | |
tree | 1e125c688edb8857a66cd17b97e0b2390cf782b4 | |
parent | 9976c31aca790025af38a95a5ad08cd8ac3bc9a2 (diff) |
decode html entities
-rw-r--r-- | IkiWiki/Plugin/search.pm | 3 |
1 files changed, 3 insertions, 0 deletions
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( |