Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
theme system
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Jul 2011 at 14:10 UTC
Updated:
2 Sep 2015 at 08:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
damien tournoud commentedTagging.
Comment #2
sunIf this works reliably, then it would be even be a major reason for bumping PHP requirements to 5.4.
Comment #3
damienmckennaI wouldn't recommend mandating PHP 5.4 be required for D8, but this definitely could be a good optional feature for when PHP 5.4 is available.
Comment #4
tsphethean commentedDo we have a baked in means of detecting PHP version, or would something like
be appropriate?
Comment #5
tsphethean commentedOn the assumption the above is ok i've rolled this patch. Tests pass on my local on php 5.3.25 and 5.4.15 - not entirely sure what to do about writing additional unit tests to cater for this. Do we want php version checking logic in our unit tests, or do we just case that the cases are what we expect?
Comment #6.0
(not verified) commentedFix preview
Comment #7
joelpittetPHP 5.4 is already a requirement and Twig already does this so it would also keep things in line with Twig's escape filter.
https://github.com/twigphp/Twig/blob/1.x/lib/Twig/Extension/Core.php#L1011
+1 to this issue.
Comment #8
joelpittetRe-rolled.
Comment #9
joelpittetComment #11
alexpottThis issue seems like a really good idea. Postponing on #2550945: Add Html::escape()
Comment #12
joelpittetFYI twig is using this internally so another reason to have this.
https://github.com/twigphp/Twig/blob/641090378dfff2913929306fbbf227269ba...
Comment #13
stefan.r commentedComment #14
stefan.r commentedComment #15
stefan.r commentedComment #16
alexpottLet's not add this documentation to the bit about how this method is different from Html::decodeEntities. It belongs in the list of conversions above.
Comment #17
stefan.r commentedThe list is a list of entity equivalents though, if we want it to be in the list we could drop the " with their HTML entity equivalents" bit?
Comment #18
stefan.r commenteda newline crept in
Comment #19
alexpottComment #20
alexpottI think it should be "replacement character" - too many capitals :). I like where these docs are now. Thanks.
Comment #21
stefan.r commentedComment #22
stefan.r commentedComment #23
stefan.r commentedComment #24
stefan.r commentedFixing some more test fails
Comment #27
joelpittetAwesome! Thanks for jumping on this after the HTML::escape blocker was in.
Comment #28
stefan.r commentedclarifying some comments
Comment #35
joelpittetThank you, green means go.
Comment #36
alexpottNormal tasks need a beta evaluation.
Comment #37
joelpittetComment #38
alexpottCommitted 00360b9 and pushed to 8.0.x. Thanks!
Thanks for adding the beta evaluation to the issue summary.
Comment #40
wim leersWow, this landed fast! Great job, @stefan.r :)