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

Add exception to DOMpurify for opening Office documents in client application #311

Closed
ThomasPolfliet opened this issue Jun 12, 2020 · 2 comments

Comments

@ThomasPolfliet
Copy link

Is your feature request related to a problem? Please describe.
In our company we have a feature request to open documents from the search results directly in Word/Excel/... desktop application. At the moment whenever we add the "ms-word:ofe|u|..." prefix in a href attribute of an tag in an handlebar, the attribute gets removed and we receive an a tag without a link.

Describe the solution you'd like

Configure DOMpurify so it allows all href attribute which start with ms-*:ofe|u|

Describe alternatives you've considered
Creating a custom component which will not be sanitized by DOM purify.
Changing the setting on the library of the documents to open the documents with the client application.

Additional context

wobba added a commit that referenced this issue Jun 12, 2020
@wobba
Copy link
Collaborator

wobba commented Jun 12, 2020

Fixed.

@wobba wobba closed this as completed Jun 12, 2020
@FranckyC
Copy link
Collaborator

Good catch @ThomasPolfliet. Thanks @wobba

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

No branches or pull requests

3 participants