Skip to content
This repository was archived by the owner on Jun 21, 2025. It is now read-only.

AlgoliaSearchBox.vueDOM text reinterpreted as HTML#211

Open
Shivam7-1 wants to merge 1 commit intogoogle:mainfrom
Shivam7-1:patch-2
Open

AlgoliaSearchBox.vueDOM text reinterpreted as HTML#211
Shivam7-1 wants to merge 1 commit intogoogle:mainfrom
Shivam7-1:patch-2

Conversation

@Shivam7-1
Copy link
Copy Markdown

By using innerText, it will avoid the risk of HTML injection, as these properties automatically escape any HTML special characters in the provided text. This helps prevent cross-site scripting (XSS) vulnerabilities by treating the input as plain text rather than interpreted HTML. Always be cautious when dealing with user input or dynamic content to prevent security risks.

@Shivam7-1
Copy link
Copy Markdown
Author

Hi @adamplouff Could You Please Review this PR
Thanks

@Shivam7-1
Copy link
Copy Markdown
Author

Hi @adamplouff Could You Please Review this PR
Thanks

@NeilFraser
Copy link
Copy Markdown

This PR will break this product by printing raw HTML on the user's screen.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants