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

fix(macros): escape page.title in sidebars #8371

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Mar 7, 2023

Summary

Fixes #8369, fixes #8370.

Problem

Page titles used as link text were not properly escaped, so page titles containing HTML elements (such as <object> 로부터 <iframe>까지 — 기타 임베딩 기술) broke the sidebar.

Solution

Use htmlEscape to escape the page.title.


Screenshots

Before

image

After

image


How did you test this change?

Ran yarn dev and opened http://localhost:3000/ko/docs/Learn/Getting_started_with_the_web locally.

@caugner caugner added p0 Urgent. We will address this as soon as possible. sidebar/toc Sidebar and table of contents labels Mar 7, 2023
@caugner caugner requested a review from wbamberg March 7, 2023 22:29
@github-actions github-actions bot added the macros tracking issues related to kumascript macros label Mar 7, 2023
Copy link
Collaborator

@wbamberg wbamberg left a comment

Choose a reason for hiding this comment

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

👍 sorry @caugner .

@caugner caugner merged commit 4988b58 into main Mar 7, 2023
@caugner caugner deleted the escape-page-title-in-sidebars branch March 7, 2023 22:38
@caugner
Copy link
Contributor Author

caugner commented Mar 8, 2023

👍 sorry @caugner .

No worries. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macros tracking issues related to kumascript macros p0 Urgent. We will address this as soon as possible. sidebar/toc Sidebar and table of contents
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Entire korean learn pages are messed up The page is not working
2 participants