Skip to content

Conversation

@mkovalua
Copy link
Contributor

@mkovalua mkovalua commented Nov 4, 2025

Purpose

Fix wrong < > & encoding

Summary of Changes

Fix wrong < > & encoding

Screenshot(s)

image

Side Effects

QA Notes

<section class="flex flex-column gap-2">
<h3>
{{ 'preprints.preprintStepper.review.sections.authorAssertions.publicPreregistration' | translate }}
{{ 'preprints.preprintStepper.review.sections.authorAssertions.publicPreregistration' | translate }} eeee
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
{{ 'preprints.preprintStepper.review.sections.authorAssertions.publicPreregistration' | translate }} eeee
{{ 'preprints.preprintStepper.review.sections.authorAssertions.publicPreregistration' | translate }}

if (titleTag?.attrs.content) {
this.title.setTitle(`${String(this.defaultMetaTags.siteName)} | ${String(titleTag.attrs.content)}`);
const title = `${String(this.defaultMetaTags.siteName)} | ${String(titleTag.attrs.content)}`;
this.title.setTitle(FixSpecialCharPipe.prototype.transform(title));
Copy link
Collaborator

Choose a reason for hiding this comment

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

It is bad practice to use prototype. First inject pipe and then use it.
Here is code: private readonly fixSpecialCharPipe = inject(FixSpecialCharPipe);
this.title.setTitle(this.fixSpecialCharPipe.transform(title));

@mkovalua mkovalua requested a review from nsemets November 4, 2025 16:04
@brianjgeiger brianjgeiger merged commit 238adb4 into CenterForOpenScience:feature/pbs-25.03 Nov 5, 2025
3 checks passed
@mkovalua mkovalua changed the title [ENG-9255] Fix wrong < > & encoding [ENG-9242] Fix wrong < > & encoding Nov 5, 2025
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.

3 participants