X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fsbin%2Frt-fulltext-indexer.in;h=a55eb4734fc79831b6647fd0d47629fa29ef6c77;hb=31f3763747b82764bb019cfab5b2a2945fc9a99d;hp=b90d8dacfc8438713921c44f5cdabc848b1da0b6;hpb=5e9677cbad2051ea452b389fa03bddf37166c590;p=freeside.git diff --git a/rt/sbin/rt-fulltext-indexer.in b/rt/sbin/rt-fulltext-indexer.in index b90d8dacf..a55eb4734 100644 --- a/rt/sbin/rt-fulltext-indexer.in +++ b/rt/sbin/rt-fulltext-indexer.in @@ -3,7 +3,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -435,7 +435,10 @@ sub extract_html { my $attachment = shift; my $text = $attachment->Content; return undef unless defined $text && length($text); -# TODO: html -> text +# the rich text editor generates html entities for characters +# but Pg doesn't index them, so decode to something it can index. + require HTML::Entities; + HTML::Entities::decode_entities($text); return \$text; }