Closed (won't fix)
Project:
Drupal core
Version:
8.0.x-dev
Component:
javascript
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Sep 2015 at 09:41 UTC
Updated:
3 Oct 2015 at 23:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sutharsan commentedComment #3
sutharsan commentedRemove !placeholder support from
Drupal.formatString().Comment #4
dawehnerIMHO the problem is much more tricky in javascript, because, well, even if Core doesn't have any usecases, contrib might have to deal with HTML,
and for HTML we don't have any replacement yet in place, in case we would just remove !placeholder.
Comment #5
xjmComment #6
effulgentsia commentedI agree with #4. See also #2570093-9: Replace !placeholder with @placeholder where needed in JavaScript . Are we sure about the issue summary's "should" in:
Wouldn't that mean we'd need to also introduce a
SafeStringJavaScript class in order to have full parity with the PHP functions?Comment #7
sutharsan commentedNo, it was not decided, it is under discussion in #2570093: Replace !placeholder with @placeholder where needed in JavaScript .
Comment #8
nod_Closing this one too since I closed the related one.
This is a problem space where we can't copy what's being done in PHP.