Consignes relatives aux modèles d'e-mails personnalisés

Consignes relatives aux modèles d'e-mails personnalisés

Modèles d’e-mails de directivesConfigurez des modèles d'e-mails standard et créez des modèles d'e-mails personnalisés, adaptés à des besoins spécifiques. Pour des raisons de sécurité, Bazaarvoice suit certaines lignes directrices et restrictions concernant les balises HTML dans les modèles d'e-mails personnalisés. Reportez-vous aux listes suivantes des balises et attributs HTML autorisés, des balises HTML non prises en charge et des lignes directrices.

Balises HTML autorisées

Balises HTML Attributs
html xmlns
body bgcolor, link, vlink, alink, background, marginheight, marginwidth, leftmargin, topmargin
head meta
title Aucun attribut autorisé
noscript Aucun attribut autorisé
frameset Aucun attribut autorisé
frame Aucun attribut autorisé
label
form
button
input name, size, maxlength, placeholder, autocomplete, checked, alt, src, usemap, type, value, disabled, readonly, accesskey, border, required, aria-label, aria-roledescription, aria-hidden
select
option
textarea
h1 style, id, class, align
h2 style, id, class, align
h3 style, id, class, align
h4 style, id, class, align
h5 style, id, class, align
h6 style, id, class, align
p style, id, class
i style, id, class
b style, id, class
s style, id, class
u style, id, class
strong style, id, class
em style, id, class
small style, id, class
big style, id, class
pré style, id, class
code style, id, class
del title, style, id, class
cite Aucun attribut autorisé
samp Aucun attribut autorisé
sub style, id, class
sup style, id, class
strike Aucun attribut autorisé
center aria-label, aria-roledescription, aria-hidden
blockquote title, style, id, class
légende style, id, class
hr style, id, class
br style, id, class
police color, face, size, style, id, class
a href, nohref, rel, name, title, style, id, class, shape, coords, alt, width, align, target, aria-label, aria-roledescription, aria-hidden
map type, scoped, media, *, Editor::STYLIST_TAG_ATTR
span title, style, id, class, align, dir, aria-label, aria-roledescription, aria-hidden
div align, title, style, id, class, border, dir, aria-label, aria-roledescription, aria-hidden
img style, id, class, title, src, name, alt, height, width, border, align, hspace, vspace, aria-label, aria-roledescription, aria-hidden
ins title, style, id, class
link media, href, type, rel
ul style, id, class
ol style, id, class
li style, id, class
dd Aucun attribut autorisé
dl Aucun attribut autorisé
dt style, id, class
thead align, char, charoff, valign, style, id, class
tbody align, char, charoff, valign, style, id, class
tfoot align, char, charoff, valign, style, id, class
table height, width, border, bgcolor, cellpadding, cellspacing, background, align, noresize, style, id, class, tr, bgcolor, role
td background, bgcolor, abbr, axis, headers, scope, nowrap, height, width, align, char, charoff, valign, colspan, rowspan, style, id, class, target, font, aria-label, aria-roledescription, aria-hidden
th abbr, axis, headers, scope, nowrap, bgcolor, height, width, align, char, charoff, valign, colspan, rowspan, style, id, class
tr height, width, align, valign, char, charoff, background, style, id, class, bgcolor
colgroup span, width, align, char, charoff, valign
col align, char, charoff, valign, span, width
fieldset Aucun attribut autorisé
légende Aucun attribut autorisé
object
embed src, movie, pluginspage, bgcolor, base, type, name, flashvars, align, height, width, allowfullscreen, quality, allowscriptaccess, seamlesstabbing, swliveconnect, wmode, allownetworking
php id
svg height, width, version, viewBox, xmlns, xmlns:xlink, enable-background
path
polygon
g id

Balises HTML non prises en charge

Bazaarvoice ne prend pas en charge l'utilisation des balises HTML suivantes pour améliorer la sécurité du système.

  • base
  • source
  • footer
  • header
  • Personnalisé
  • spancet
  • area
  • unsubscribe
  • picture
  • spanthis
  • nobr
  • wapper
  • vänliga
  • path
  • g
  • iframe
  • svg
  • polygon
  • multiline
  • section
  • wbr
  • script
  • audio

Styles CSS autorisés

Bazaarvoice ne permet l'utilisation des styles CSS suivants que si vous les ajoutez au corps (body) de votre page.

CSS_Property Valeurs autorisées Valeurs prises en charge de
azimuth
background background-color, background-image, background-repeat, background-attachment, background-position
background-attachment
background-color
background-image
background-position
background-repeat repeat, repeat-x, repeat-y, no-repeat, inherit
border-collapse
border-color
border-top-color
border-right-color
border-bottom-color
border-left-color
border-radius
border-top-right-radius
border-bottom-right-radius
border-bottom-left-radius
bottom
caption-side
clear
color
cue-after
cue-before
direction
display inline, block, list-item, run-in, compact, marker, table, inline-table, table-row-group, table-header-group, table-footer-group, table-row, table-column-group, table-column, table-cell, table-caption, none, inherit, inline-block
elevation
empty-cells
float
font-size
font-size-adjust
font-stretch
font-style
font-variant
font-weight
height
left
letter-spacing
line-height
list-style-image
list-style-position
list-style-type
marker-offset
max-height
max-width
min-height
min-width
orphans
outline-color
overflow
page-break-after
page-break-before
pause-after
pause-before
pitch
pitch-range
position
richness
right
size
speak
speak-header
speak-numeral
speak-punctuation
speech-rate
stress
table-layout
text-indent
text-transform
top
unicode-bidi normal, embed, bidi-override, inherit
vertical-align baseline, sub, super, top, text-top, middle, bottom, text-bottom, inherit
visibility
volume
white-space
widows
width
word-spacing
border-style
border-top-style
border-right-style border-style
border-bottom-style border-style
border-left-style border-style
border-top-width
border-right-width
border-bottom-width
border-left-width
border-width
margin
margin-top
margin-bottom
margin-right
margin-left
outline-style border-style
outline-width
padding
padding-top
padding-right
padding-bottom
padding-left
border border-width, border-style
border-top border-top-width, border-style
border-right border-top-width, border-style
border-left border-top-width, border-style
border-bottom border-top-width, border-style
cue
list-style list-style-type, list-style-position, list-style-image
marks
ouline outline-color, outline-style, outline-width
pause
text-decoration none, underline, overline, line-through, blink, inherit
border-spacing
clip
counter-increment
cursor
text-shadow
font font-style, font-variant, font-weight, font-size, line-height, font-family
font-family
page auto
play-during
text-align
voice-family
mso-ansi-font-size
mso-ansi-font-style
mso-ansi-font-weight
mso-ansi-language
mso-ascii-font-family
mso-background
mso-background-source
mso-baseline-position
mso-bidi-flag
mso-bidi-font-family
mso-bidi-font-size
mso-bidi-font-style
mso-bidi-font-weight
mso-bidi-language
mso-bookmark
mso-border-alt
mso-border-between
mso-border-between-color
mso-border-between-style
mso-border-between-width
mso-border-bottom-alt
mso-border-bottom-color-alt
mso-border-bottom-source
mso-border-bottom-style-alt
mso-border-left-width-alt
mso-border-right-alt
mso-border-right-color-alt
mso-border-right-color-alt
mso-border-right-source
mso-border-right-style-alt
mso-border-right-width-alt
mso-border-shadow
mso-border-source
mso-border-style-alt
mso-border-top-alt
mso-border-top-color-alt
mmso-border-top-source
mso-border-top-style-alt
mso-border-top-width-alt
mso-border-width-alt
mso-break-type
mso-build
mso-build-after-action
mso-build-after-color
mso-build-auto-secs
mso-build-avi
mso-build-dual-id
mso-build-order
mso-build-sound-name
mso-bullet-image
mso-cellspacing
mso-cell-special
mso-char-indent
mso-char-indent-count
mso-char-indent-size
mso-char-type
mso-char-wrap
mso-color-alt
mso-color-index
mso-color-source
mso-column-break-before
mso-columns
mso-column-separator
mso-comment-author
mso-comment-continuation
mso-comment-id
mso-comment-reference
mso-data-placement
mso-default-height
mso-default-width
mso-diagonal-down
mso-diagonal-down-color
mso-diagonal-down-source
mso-diagonal-down-style
mso-diagonal-down-width
mso-diagonal-up
mso-diagonal-up-color
mso-diagonal-up-source
mso-diagonal-up-style
mso-diagonal-up-width
mso-displayed-decimal-separator
mso-displayed-thousand-separator
mso-element
mso-element-anchor-horizontal
mso-element-anchor-lock
mso-element-anchor-vertical
mso-element-frame-height
mso-element-frame-hspace
mso-element-frame-vspace
mso-element-frame-width
mso-element-left
mso-element-linespan
mso-element-top
mso-element-wrap
mso-endnote-continuation-notice
mso-endnote-continuation-notice-id
mso-endnote-continuation-notice-src
mso-endnote-continuation-separator
mso-endnote-continuation-separator-id
mso-endnote-continuation-separator-src
mso-endnote-display
mso-endnote-id
mso-endnote-numbering
mso-endnote-numbering-restart
mso-endnote-numbering-start
mso-endnote-numbering-style
mso-endnote-position
mso-endnote-separator
mso-endnote-separator-id
mso-endnote-separator-src
mso-even-footer
mso-even-footer-id
mso-even-footer-src
mso-even-header
mso-even-header-id
mso-even-header-src
mso-facing-pages
mso-fareast-font-family
mso-fareast-hint
mso-fareast-language
mso-field-change
mso-field-change-author
mso-field-change-time
mso-field-change-value
mso-field-code
mso-field-lock
mso-fills-color
mso-first-footer
mso-first-footer-id
mso-first-footer-src
mso-first-header
mso-first-header-id
mso-first-header-src
mso-font-alt
mso-font-charset
mso-font-format
mso-font-info
mso-font-info-charset
mso-font-info-type
mso-font-kerning
mso-font-pitch
mso-font-signature
mso-font-signature-csb-one
mso-font-signature-csb-two
mso-font-signature-usb-four
mso-font-signature-usb-one
mso-font-signature-usb-three
mso-font-signature-usb-two
mso-font-src
mso-font-width
mso-footer
mso-footer-data
mso-footer-id
mso-footer-margin
mso-footer-src
mso-footnote-continuation-notice
mso-footnote-continuation-notice-id
mso-footnote-continuation-notice-src
mso-footnote-continuation-separator
mso-footnote-continuation-separator-id
mso-footnote-continuation-separator-src
mso-footnote-id
mso-footnote-numbering
mso-footnote-numbering-restart
mso-footnote-numbering-start
mso-footnote-numbering-style
mso-footnote-position
mso-footnote-separator
mso-footnote-separator-id
mso-footnote-separator-src
mso-foreground
mso-forms-protection
mso-generic-font-family
mso-grid-bottom
mso-grid-bottom-count
mso-grid-left
mso-grid-left-count
mso-grid-right
mso-grid-right-count
mso-grid-top
mso-grid-top-count
mso-gutter-direction
mso-gutter-margin
mso-gutter-position
mso-hansi-font-family
mso-header
mso-header-data
mso-header-id
mso-header-margin
mso-header-src
mso-height-alt
mso-height-rule
mso-height-source
mso-hide
mso-highlight
mso-horizontal-page-align
mso-hyphenate
mso-ignore
mso-kinsoku-overflow
mso-layout-grid-align
mso-layout-grid-char-alt
mso-layout-grid-origin
mso-level-inherit
mso-level-legacy
mso-level-legacy-indent
mso-level-legacy-space
mso-level-legal-format
mso-level-number-format
mso-level-numbering
mso-level-number-position
mso-level-reset-level
mso-level-start-at
mso-level-style-link
mso-level-suffix
mso-level-tab-stop
mso-level-text
mso-line-break-override
mso-line-grid
mso-line-height-alt
mso-line-height-rule
mso-line-numbers-count-by
mso-line-numbers-distance
mso-line-numbers-restart
mso-line-numbers-start
mso-line-spacing
mso-linked-frame
mso-list
mso-list-change
mso-list-change-author
mso-list-change-time
mso-list-change-values
mso-list-id
mso-list-ins
mso-list-ins-author
mso-list-ins-time
mso-list-name
mso-list-template-ids
mso-list-type
mso-margin-bottom-alt
mso-margin-left-alt
mso-margin-top-alt
mso-mirror-margins
mso-negative-indent-tab
mso-number-format
mso-outline-level
mso-outline-parent
mso-outline-parent-col
mso-outline-parent-row
mso-outline-parent-visibility
mso-outline-style
mso-padding-alt
mso-padding-between
mso-padding-bottom-alt
mso-padding-left-alt
mso-padding-right-alt
mso-padding-top-alt
mso-page-border-aligned
mso-page-border-art
mso-page-border-bottom-art
mso-page-border-display
mso-page-border-left-art
mso-page-border-offset-from
mso-page-border-right-art
mso-page-border-surround-footer
mso-page-border-surround-header
mso-page-border-top-art
mso-page-border-z-order
mso-page-numbers
mso-page-numbers-chapter-separator
mso-page-numbers-chapter-style
mso-page-numbers-start
mso-page-numbers-style
mso-page-orientation
mso-page-scale
mso-pagination
mso-panose-arm-style
mso-panose-contrast
mso-panose-family-type
mso-panose-letterform
mso-panose-midline
mso-panose-proportion
mso-panose-serif-style
mso-panose-stroke-variation
mso-panose-weight
mso-panose-x-height
mso-paper-source
mso-paper-source-first-page
mso-paper-source-other-pages
mso-pattern
mso-pattern-color
mso-pattern-style
mso-print-area
mso-print-color
mso-print-gridlines
mso-print-headings
mso-print-resolution
mso-print-sheet-order
mso-print-title-column
mso-print-title-row
mso-prop-change
mso-prop-change-author
mso-prop-change-time
mso-protection
mso-rotate
mso-row-margin-left
mso-row-margin-right
mso-ruby-merge
mso-ruby-visibility
mso-scheme-fill-color
mso-scheme-shadow-color
mso-shading
mso-shadow-color
mso-space-above
mso-space-below
mso-spacerun
mso-special-character
mso-special-format
mso-style-id
mso-style-name
mso-style-next
mso-style-parent
mso-style-type
mso-style-update
mso-subdocument
mso-symbol-font-family
mso-tab-count
mso-table-anchor-horizontal
mso-table-anchor-vertical
mso-table-bspace
mso-table-del-author
mso-table-deleted
mso-table-del-time
mso-table-dir
mso-table-ins-author
mso-table-inserted
mso-table-ins-time
mso-table-layout-alt
mso-table-left
mso-table-lspace
mso-table-overlap
mso-table-prop-author
mso-table-prop-change
mso-table-prop-time
mso-table-rspace
mso-table-top
mso-table-tspace
mso-table-wrap
mso-text-animation
mso-text-combine-brackets
mso-text-combine-id
mso-text-control
mso-text-fit-id
mso-text-indent-alt
mso-text-orientation
mso-text-raise
mso-title-page
mso-tny-compress
mso-unsynced
mso-vertical-align-alt
mso-vertical-align-special
mso-vertical-page-align
mso-width-alt
mso-width-source
mso-word-wrap
mso-xlrowspan
mso-zero-height
-webkit-border-radius
-moz-border-radius
-webkit-text-size-adjust
-ms-text-size-adjust
-ms-interpolation-mode
-webkit-font-smoothing
object-fit
opacity

Consignes relatives aux feuilles de style en cascade (CSS)

Nous ne prenons pas en charge :

  • Restriction de remplacement des balise de style : le remplacement de la balise style dans une autre balise n'est pas pris en charge. Les clients doivent suivre le format HTML donné.
  • Exclusion de balise de style de cas particulier: le cas particulier de remplacement de la balise style dans une autre balise n'est pas pris en charge. Seules les balises de style de premier niveau sont autorisées.
  • Suppression des polices de tailles spécifiques : les polices de 12 ou 16 pixels en Arial seront supprimées, car Antisamy ne prend pas en charge ces formats, ainsi que les polices à valeurs numériques.
  • Limitation des balises de style : une seule balise de style est autorisée dans une balise. Si plusieurs balises de style sont détectées, la première sera ignorée et la seconde sera utilisée.
  • Dégradés linéaires en CSS : les dégradés linéaires en CSS ne sont pas pris en charge pour des raisons de sécurité. Utilisez plutôt des formats de couleur unie pour le style CSS.

    Par exemple :

    Remplacer
    <div style="background-image: linear-gradient(#005e2c, #008c43);"></div>
    Lorsque vous avez choisi les
    <div style="background-color: #005e2c;"></div>

Consignes générales relatives au HTML

Nous ne prenons pas en charge :

  • Balises non fermées : assurez-vous de fermer toutes les balises afin qu'elles fonctionnent correctement.
  • Exigence relative au type de document : incluez une déclaration de type de document valide au début des fichiers HTML. Sans cela, le style pourrait ne pas fonctionner correctement. Voici un exemple de format HTML standard que vous pouvez copier :
    HTML
    <!DOCTYPE html>
    <html>
    <head>
    <title>Page title</title>
    </head>
    <body>This is a paragraph</body>
    </html>

  • Condition de départ du fichier HTML : les fichiers HTML doivent toujours commencer par une déclaration doctype, et non par une balise custom ou toute autre balise personnalisée.
  • Gestion du protocole d'URL des images: supprimez les balises « http » supplémentaires des URL des images afin qu'elles fonctionnent correctement.
  • Exigence relative à la balise body : veillez à définir la balise body dans les documents HTML pour un bon rendering.
  • Exigence relative à la balise standard : seules les balises standard sont autorisées. Les balises non standard, telles que "-webkit-text-size-adjust:none", seront supprimées.
  • Balises vides : évitez les balises vides car elles peuvent avoir un impact négatif sur le comportement du système.