Escaping in js scripts

Created on 13 March 2023, about 1 year ago
Updated 4 March 2024, 3 months ago

Problem/Motivation

After adding a javascript via the module admin page symbols like ">" are escaped.

Steps to reproduce

1. Add a javascript via the module admin page that contains operators like "=>"
2. Check the HTML output of the page

Expected behavior
JS output exactly as in the module settings.

Actual behavior
">" is substituted with > and script does not work.

Remaining tasks

It might be a core behavior, not the module.
The problem was mentioned in the issue here.
https://www.drupal.org/project/drupal/issues/2391025#comment-12302993 β†’

This issue can be closed if this module has nothing to do with such behavior.
However, if there is any workaround I would like to receive any advice.

User interface changes

No.

API changes

No.

πŸ’¬ Support request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡―πŸ‡΅Japan dc-sergey

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024