Escaping in js scripts

Created on 13 March 2023, over 1 year ago
Updated 4 March 2024, 9 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-kinoshita

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

Comments & Activities

Production build 0.71.5 2024