Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
theme system
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Jun 2015 at 17:50 UTC
Updated:
28 Jul 2015 at 07:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
star-szrComment #2
star-szrCompletely untested, letting testbot do the work for now.
Comment #4
joelpittetSo close, here's the other side that needs escaping because of the
=>returned from checkPlain'dprint_r(array(), TRUE)Comment #6
lauriiiThe IS is missing steps to reproduce..
Comment #7
wim leersFigured out the STR myself, added them to the IS.
Manually tested.
Comment #8
alexpottIf this was
'snippet' => "Dummy search snippet to display. Keywords: {$this->keywords}\n\nConditions: " . print_r($this->searchParameters, TRUE),instead it would still work because Twig auto-escape would just kick in. I think we should reserve SafeMarkup::format() for joining markup that needs to be marked safe together. Here the whole point is that you want the result checkplain-ed...That said... if it used
<br/>instead of\nyou'd need to use SafeMarkup::format... why are we using\n?But meh this is test code and generally a search snippet would need to be marked as safe (see search_excerpt) so let's proceed here. Committed d7ab90d and pushed to 8.0.x. Thanks!