diff --git a/doc/Extensions/Alerting.md b/doc/Extensions/Alerting.md index 1cef41509..88836f5e4 100644 --- a/doc/Extensions/Alerting.md +++ b/doc/Extensions/Alerting.md @@ -139,9 +139,12 @@ Alert sent to: {foreach %contacts}%value <%key> {/foreach} Conditional formatting example, will display a link to the host in email or just the hostname in any other transport: ```text -{if %transport == mail}%hostname{else}%hostname{/if} +{if %transport == mail}%hostname{else}%hostname{/if} ``` +Note the use of double-quotes. Single quotes (`'`) in templates will be escaped (replaced with `\'`) in the output and should therefore be avoided. + + # Transports Transports are located within `$config['install_dir']/includes/alerts/transports.*.php` and defined as well as configured via ~~`$config['alert']['transports']['Example'] = 'Some Options'`~~.