Wiki source code of Confirmation Box API
Last modified by Manuel Leduc on 2026/05/11 17:21
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | == Constructor == | ||
| 2 | |||
| 3 | The documentation of the constructor can be found in the corresponding legacy documentation [[page>>Documentation.DevGuide.FrontendResources.ConfirmationBox.WebHome||anchor="HUsage"]]. | ||
| 4 | |||
| 5 | {{version since="17.10.9,18.4.0RC1"}} | ||
| 6 | == textContentFormat() == | ||
| 7 | |||
| 8 | Indicates how the ##textContent## parameter is interpreted by ##XWiki.widgets.ConfirmationBox##. | ||
| 9 | Callers can check for the presence of this method to decide whether to escape their input: | ||
| 10 | |||
| 11 | * When this method is available, the ##textContent## parameter is treated as plain text and must not be escaped. | ||
| 12 | * When this method is missing (before 18.4.0RC1/17.10.9), the ##textContent## parameter is interpreted as HTML and may need to be escaped. | ||
| 13 | The returned value is always the ##"plain"## string. | ||
| 14 | {{/version}} |