From 433a989c7461830f20c73db9b0fe36186731b692 Mon Sep 17 00:00:00 2001 From: sdua Date: Wed, 24 Aug 2016 19:32:36 +0000 Subject: [PATCH] URLDecode: Remove HTML encoding from output text --- lib/DDG/Goodie/URLDecode.pm | 4 ++-- t/URLDecode.t | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/DDG/Goodie/URLDecode.pm b/lib/DDG/Goodie/URLDecode.pm index c95649414..727ed6dfd 100755 --- a/lib/DDG/Goodie/URLDecode.pm +++ b/lib/DDG/Goodie/URLDecode.pm @@ -36,8 +36,8 @@ handle query_raw => sub { return $text, structured_answer => { data => { - title => html_enc($decoded), - subtitle => html_enc($subtitle) + title => $decoded, + subtitle => $subtitle }, templates => { group => 'text', diff --git a/t/URLDecode.t b/t/URLDecode.t index e76e0703b..652d788f0 100755 --- a/t/URLDecode.t +++ b/t/URLDecode.t @@ -17,8 +17,8 @@ sub build_answer { return sprintf("URL Decoded: %s",$answer) , structured_answer => { data => { - title => encode_entities($answer), - subtitle => "URL decode: " . encode_entities($sub) + title => $answer, + subtitle => "URL decode: $sub" }, templates => { group => 'text',