diff --git a/examples/docs/en-US/message-box.md b/examples/docs/en-US/message-box.md index cf8b4dd2c..1abea608a 100644 --- a/examples/docs/en-US/message-box.md +++ b/examples/docs/en-US/message-box.md @@ -311,10 +311,14 @@ Can be customized to show various content. ``` ::: -### Align in center -Align the content in center +:::warning +Although `message` property supports HTML strings, dynamically rendering arbitrary HTML on your website can be very dangerous because it can easily lead to [XSS attacks](https://en.wikipedia.org/wiki/Cross-site_scripting). So when `dangerouslyUseHTMLString` is on, please make sure the content of `message` is trusted, and **never** assign `message` to user-provided content. +::: -:::demo set `center` to `true` will align the content in center +### Centered content +Content of MessageBox can be centered. + +:::demo Setting `center` to `true` will center the content ```html