From b04ad87df93a50c3c74f219331013bdb22ff36cb Mon Sep 17 00:00:00 2001 From: Leopoldthecoder Date: Fri, 15 Sep 2017 12:17:40 +0800 Subject: [PATCH] MessageBox: update docs --- examples/docs/en-US/message-box.md | 18 +++++++----------- examples/docs/zh-CN/message-box.md | 10 +++++----- 2 files changed, 12 insertions(+), 16 deletions(-) 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