You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.
I got sanitize injected as a dependency into my project for custom reasons, but I'd like to avoid the sanitize in this line: https://github.com/Orange-OpenSource/angular-swagger-ui/blob/master/src/scripts/modules/swagger-markdown.js#L54
because everytime it sanitizes here, it messes up my description field, specifically, my newlines \n, thus my html markdown, shows up not formatted as I expected it.
How to avoid the sanitize here?
The text was updated successfully, but these errors were encountered:
Hi!
Sorry for the late response... Is your swagger descriptor coming from a 'trusted source' ie. are you the owner of the swagger descriptor ?
If yes, you should add trusted-sources=true on swagger-ui directive
If no, then you should create your own module based on swagger-markdown.js and remove the piece of code causing the issue
Regards
I got sanitize injected as a dependency into my project for custom reasons, but I'd like to avoid the sanitize in this line:
https://github.com/Orange-OpenSource/angular-swagger-ui/blob/master/src/scripts/modules/swagger-markdown.js#L54
because everytime it sanitizes here, it messes up my description field, specifically, my newlines
\n
, thus my html markdown, shows up not formatted as I expected it.How to avoid the sanitize here?
The text was updated successfully, but these errors were encountered: