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: Tags in webpages are not escaped #353

Open
ReveredOxygen opened this issue Feb 3, 2025 · 0 comments
Open

BUG: Tags in webpages are not escaped #353

ReveredOxygen opened this issue Feb 3, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@ReveredOxygen
Copy link

Version (please complete the following information):

  • OS: Linux
  • Browser: LibreWolf
  • Web Clipper version: 0.10.7
  • Obsidian version: 1.8.4

Describe the bug

When you create a clip of a webpage that contains tag syntax (such as #example), the created note will have that tag.

This normally wouldn't be too bad since you could simply use the replace filter to escape it, but it appears that trying to insert backslashes with filters (such as {{contentHtml|replace:"#":"\#"|markdown}}) actually doesn't work either.

Expected behavior

The syntax would be escaped, such as \#example. This would align better with the behavior when clipping webpages that contain [[wikilink syntax]]

URLs where the bug occurs

#353

To reproduce

Steps to reproduce the behavior:

  1. Clip this issue
  2. Notice that the resulting note has the #example tag
@ReveredOxygen ReveredOxygen added the bug Something isn't working label Feb 3, 2025
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

No branches or pull requests

1 participant