You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2010/11/07 03:00:30 UTC
[lucy-commits] svn commit: r1032198 - /incubator/lucy/trunk/perl/sample/search.cgi
Author: marvin
Date: Sun Nov 7 02:00:29 2010
New Revision: 1032198
URL: http://svn.apache.org/viewvc?rev=1032198&view=rev
Log:
Kill off an unnecessary encode_entities() invocation.
Modified:
incubator/lucy/trunk/perl/sample/search.cgi
Modified: incubator/lucy/trunk/perl/sample/search.cgi
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/sample/search.cgi?rev=1032198&r1=1032197&r2=1032198&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/sample/search.cgi (original)
+++ incubator/lucy/trunk/perl/sample/search.cgi Sun Nov 7 02:00:29 2010
@@ -76,11 +76,10 @@ my $highlighter = Lucy::Highlight::Highl
my $report = '';
while ( my $hit = $hits->next ) {
my $score = sprintf( "%0.3f", $hit->get_score );
- my $title = encode_entities( $hit->{title} );
my $excerpt = $highlighter->create_excerpt($hit);
$report .= qq|
<p>
- <a href="$hit->{url}"><strong>$title</strong></a>
+ <a href="$hit->{url}"><strong>$hit->{title}</strong></a>
<em>$score</em>
<br />
$excerpt