diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-06-04 01:50:51 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-06-04 01:50:51 -0400 |
commit | 27376abb3c73e6d1e5d5743b8ddc1dc4790a60e7 (patch) | |
tree | f764b660fde26243e7faed34859c31ab6ccf2083 /IkiWiki/Plugin/search.pm | |
parent | ded3ea2ccf074bed551d1feedf3d6b2f264589a0 (diff) | |
download | ikiwiki-27376abb3c73e6d1e5d5743b8ddc1dc4790a60e7.tar ikiwiki-27376abb3c73e6d1e5d5743b8ddc1dc4790a60e7.tar.gz |
also decode html entities in the title
Diffstat (limited to 'IkiWiki/Plugin/search.pm')
-rw-r--r-- | IkiWiki/Plugin/search.pm | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/IkiWiki/Plugin/search.pm b/IkiWiki/Plugin/search.pm index 1ee1b8fdb..5e1d98a72 100644 --- a/IkiWiki/Plugin/search.pm +++ b/IkiWiki/Plugin/search.pm @@ -92,15 +92,14 @@ 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 + # Decode html entities in it, since omega re-encodes them. + eval q{use HTML::Entities}; $doc->set_data( "url=".urlto($params{page}, "")."\n". - "sample=$sample\n". - "caption=$title\n". + "sample=".decode_entities($sample)."\n". + "caption=".decode_entities($title)."\n". "modtime=$IkiWiki::pagemtime{$params{page}}\n". "size=".length($params{content})."\n" ); |