microsoft / sample-app-aoai-chatGPT

Sample code for a simple web chat experience through Azure OpenAI, including Azure OpenAI On Your Data.
MIT License
1.42k stars 2.13k forks source link

Do not sanitize links #944

Closed iseabock closed 1 week ago

iseabock commented 1 week ago

Motivation and Context

User noted DomPurify was sanitizing links in citations replacing & with &

Description

This PR adds an allowed attributes array that has href to skip sanitizing hrefs

Contribution Checklist