summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki')
-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(