Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow html content in selection template #6311

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

5andr0
Copy link

@5andr0 5andr0 commented May 9, 2024

Applying the same logic, which was already implemented for the result template, where only strings are HTML escaped. Now the user does not have to overwrite escapeMarkup when passing html content from templateSelection. Also fixed the typecheck of strings, because typeof new String("") is 'object' and not 'string'.

This pull request includes a

  • Bug fix
  • New feature
  • Translation

The following changes were made

  • Fixing a bug, where String objects are not escaped because typeof new String("") is 'object', not 'string'
  • Only escape template strings for selection aswell

Applying the same logic, which was already implemented for the result template, where only strings are HTML escaped.
Now the user does not have to overwrite escapeMarkup when passing html content from templateSelection.
Also fixed the typecheck of strings, because typeof String is Object and not string.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant