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

Get rid of html encode method #4861

Merged
merged 2 commits into from
Aug 2, 2023
Merged

Get rid of html encode method #4861

merged 2 commits into from
Aug 2, 2023

Conversation

jorg-vr
Copy link
Contributor

@jorg-vr jorg-vr commented Aug 2, 2023

This pull request removes the html-encode method, as it could have potentially been unsafe and was not required.

@jorg-vr jorg-vr added the chore Repository/build/dependency maintenance label Aug 2, 2023
@jorg-vr jorg-vr requested a review from a team as a code owner August 2, 2023 08:44
@jorg-vr jorg-vr self-assigned this Aug 2, 2023
@jorg-vr jorg-vr requested review from bmesuere and chvp and removed request for a team August 2, 2023 08:44
html`${s}`;
mark(s: string): (TemplateResult | string)[] | string {
if (!this.filter) {
return s;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the original code, this was wrapped in a template string. This isn't needed anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it will be wrapped in a template when used, which made also wrapping it here an operation without effect

@jorg-vr jorg-vr merged commit 7db5094 into main Aug 2, 2023
@jorg-vr jorg-vr deleted the fix/remove-html-encode branch August 2, 2023 09:12
@jorg-vr jorg-vr temporarily deployed to naos August 2, 2023 09:12 — with GitHub Actions Inactive
@jorg-vr jorg-vr temporarily deployed to production August 2, 2023 09:16 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Repository/build/dependency maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants