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

feat: add sanitization consistently #2916

Merged
merged 3 commits into from
Apr 12, 2022
Merged

feat: add sanitization consistently #2916

merged 3 commits into from
Apr 12, 2022

Conversation

gwincr11
Copy link
Contributor

@gwincr11 gwincr11 commented Apr 7, 2022

📑 Summary

Ensure any where we are adding accessibility already that it is sanitized.

📏 Design Decisions

Used the common sanitizer.

📋 Tasks

Make sure you

  • 📖 have read the contribution guidelines
  • 💻 have added unit/e2e tests (if appropriate)
  • 🔖 targeted develop branch

@@ -69,15 +72,17 @@ const getRelationships = () => relationships;

// Keep this - TODO: revisit...allow the diagram to have a title
const setTitle = function (txt) {
title = txt;
let sanitizedText = sanitizeText(txt, configApi.getConfig());
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to pass in configApi.getConfig() here since it's already passed into the sanitizeText function on line 11?

Copy link
Collaborator

Choose a reason for hiding this comment

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

You are right. That is not necessary. We can remove that.

@knsv knsv merged commit c13f6f7 into mermaid-js:develop Apr 12, 2022
@knsv knsv mentioned this pull request May 6, 2022
3 tasks
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