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

Bug: Handle special characters in note/folder name #308

Closed
ThomasOrlita opened this issue Mar 2, 2025 · 3 comments · Fixed by #309
Closed

Bug: Handle special characters in note/folder name #308

ThomasOrlita opened this issue Mar 2, 2025 · 3 comments · Fixed by #309
Labels
bug Something isn't working

Comments

@ThomasOrlita
Copy link

Describe the bug
The note and folder name are rendered in the DOM using v-html, meaning if it contains an HTML tag, it will be rendered as HTML instead of text.

To Reproduce
Steps to reproduce the behavior:

  1. Save a note as <u>test
  2. Open the note switching dialog
  3. See the note name rendered as HTML

Expected behavior
Note/folder title should be rendered as text.

Desktop:

Additional context

<span class="name" v-html="item.name" />
<span class="path" v-html="item.folder" />

@heyman heyman added the bug Something isn't working label Mar 2, 2025
@heyman
Copy link
Owner

heyman commented Mar 3, 2025

Fixed and released in new version. Thanks for reporting!

@ThomasOrlita
Copy link
Author

No worries -- this part might need to be updated now, though, to highlight the result.

const nameHighlight = result[0].highlight("<b>", "</b>")

@heyman
Copy link
Owner

heyman commented Mar 3, 2025

Oh, shoot! Good catch. Fix incoming soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants