From 889f48be6eceea1099e58d1a092545a91b0d236c Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 28 May 2016 17:59:10 +0100 Subject: [PATCH] Fix summary handling --- lib/App/Web/Oof.pm | 3 ++- tmpl/details.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/App/Web/Oof.pm b/lib/App/Web/Oof.pm index ba80d0e..c3aeeb1 100644 --- a/lib/App/Web/Oof.pm +++ b/lib/App/Web/Oof.pm @@ -269,7 +269,8 @@ sub details_app { my $slug = make_slug $data{title}; $tree->find('title')->replace_content("$data{title} | ledparts4you"); $tree->find('h2')->replace_content($data{title}); - $tree->fid('summary')->replace_content($data{summary}); + my $summary_literal = HTML::Element::Library::super_literal $data{summary}; + $tree->fid('summary')->replace_content($summary_literal); $tree->look_down(rel => 'canonical')->attr(href => "/details/$id/$slug"); $tree->fid('pictures')->find('li')->iter3(\@pics, \&details_list_element); $tree->fid('jsonld')->replace_content(encode_json product_to_schemaorg '', %data); diff --git a/tmpl/details.html b/tmpl/details.html index aa9b4cd..85deb0a 100644 --- a/tmpl/details.html +++ b/tmpl/details.html @@ -12,7 +12,7 @@

Item

Go to order form. -

+
Go to order form. -- 2.39.2