There's no simple way to add HTML-escaped text to a Element. OoUiTag::appendContent() doesn't escape strings.
I say we should add a appendText() method and use it where applicable.
Version: unspecified
Severity: major
There's no simple way to add HTML-escaped text to a Element. OoUiTag::appendContent() doesn't escape strings.
I say we should add a appendText() method and use it where applicable.
Version: unspecified
Severity: major
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T49145 Formally deprecate jQuery UI after we've stopped using jQuery UI in extensions and core | |||
Open | None | T100270 Replace use of jQuery UI and MW UI with OOUI across all Wikimedia-deployed extensions and core | |||
Resolved | matmarex | T74715 Convert some MW core special pages to OOUI | |||
Resolved | • TrevorParscal | T74714 Provide the OOUI PHP module inside MW core | |||
Resolved | • TrevorParscal | T74713 Get OOUI PHP to be good to go | |||
Resolved | matmarex | T74542 OOUI PHP: No simple way to add HTML-escaped text to a Element |
We currently have some bugs where JS and PHP escape things differently because of this.
gerritadmin wrote:
Change 169106 had a related patch set uploaded by Bartosz Dziewoński:
OoUiTag: HTML-escape everything by default
gerritadmin wrote:
Change 169106 merged by jenkins-bot:
OoUiTag: HTML-escape everything by default