Skip to content

Section header fails rendering quote marks #253

Description

@noy-boop

Describe the bug
if a section header has quote marks, while opening the modal the title is cut off.

To Reproduce

  1. create a section with " in the title.
  2. open the modal

Expected behaviour
I would expect to see the same title in the grid view and when the modal popups.

Screenshots

Image Image

Versions (please complete the following information):

  • Moodle: 4.5.8+
  • Format: 405.1.5 (2024101508)

Additional context
obviously it's an HTML escaping issue.
i believe that changing in grid.mustach
this:
data-sectiontitle="{{#header}}{{{name}}}{{/header}}"
to this:
data-sectiontitle="{{#header}}{{name}}{{/header}}"

will fix the issue.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions