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 marker names breaking HTML class syntax #5570

Closed
wants to merge 1 commit into from

Conversation

theolaa
Copy link

@theolaa theolaa commented May 20, 2024

Changes
Adds extra processing to the chapter name before it is included as an HTML class in the video player track-bar, e.g. converting spaces to dashes, and stripping quotes and apostrophes.

Issues
Fixes #5561

@theolaa theolaa requested a review from a team as a code owner May 20, 2024 20:22
Copy link

sonarcloud bot commented May 20, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@dmitrylyzo
Copy link
Contributor

There is an alternative #5563

In fact, converting a chapter title to a class name is so unreliable: from the fact that it could be in a different language to the possibility of malware (#5563).

@theolaa
Copy link
Author

theolaa commented May 20, 2024

Fair enough, seems this PR is unnecessary then?

@thornbill
Copy link
Member

Yes it is. Sorry I meant to comment on the issue, but did not have a chance to yet.

@theolaa
Copy link
Author

theolaa commented May 20, 2024

No worries, I'm just happy I figured out how to get a local version of the web client spun up lol

@thornbill thornbill closed this May 21, 2024
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.

Chapter titles break trackbar HTML class names, introduce unwanted icons
3 participants