fix: specify charset utf-8 in html script declaration (#6278)
ref: #5311
This commit is contained in:
committed by
GitHub
parent
22668ee8d3
commit
d7d166d0a4
@@ -90,7 +90,7 @@ For more information on controlling Swagger UI through the Docker image, see the
|
||||
You can embed Swagger UI's code directly in your HTML by using unpkg's interface:
|
||||
|
||||
```html
|
||||
<script src="https://unpkg.com/swagger-ui-dist@3/swagger-ui-bundle.js"></script>
|
||||
<script src="https://unpkg.com/swagger-ui-dist@3/swagger-ui-bundle.js" charset="UTF-8"></script>
|
||||
<!-- `SwaggerUIBundle` is now available on the page -->
|
||||
```
|
||||
|
||||
@@ -98,4 +98,4 @@ See [unpkg's main page](https://unpkg.com/) for more information on how to use u
|
||||
|
||||
### Static files without HTTP or HTML
|
||||
|
||||
Once swagger-ui has successfully generated the `/dist` directory, you can copy this to your own file system and host from there.
|
||||
Once swagger-ui has successfully generated the `/dist` directory, you can copy this to your own file system and host from there.
|
||||
|
||||
Reference in New Issue
Block a user