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 was archived by the owner on Sep 5, 2024. It is now read-only.
fix(dialog): enable support for html content for alert and confirm dialogs
* dialog`::onShow( )` now uses `wrapSimpleContent( )` to wrap simple strings in `<p>` tags
* dialog basic demo `showConfirm( )` uses HTML span tag to illustrate use of HMTL content
* implemented generic `md-template` to safely inject HTML content into an element
BREAKING CHANGE: dialog content text is now injected into **div.md-dialog-content-body**
Before the template used was:
```html
<md-dialog-content>
<h2></h2>
<p></p>
</md-dialog-content>
```
Now uses:
```html
<md-dialog-content>
<h2></h2>
<div class="md-dialog-content-body">
<p></p>
</div>
</md-dialog-content>
```
Fixes#1495.
0 commit comments