summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-06-04 01:34:26 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-06-04 01:34:26 -0400
commit4a51e384eb173bcf616d7d7e54476c609164e05f (patch)
tree1e125c688edb8857a66cd17b97e0b2390cf782b4 /IkiWiki/Plugin
parent9976c31aca790025af38a95a5ad08cd8ac3bc9a2 (diff)
decode html entities
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/search.pm3
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(