Richtlinien für benutzerdefinierte E-Mail-Vorlagen

Richtlinien für benutzerdefinierte E-Mail-Vorlagen

Richtlinien für E-Mail-VorlagenKonfigurieren Sie Standard-E-Mail-Vorlagen und erstellen Sie benutzerdefinierte E-Mail-Vorlagen, die an bestimmte Anforderungen angepasst sind. Aus Sicherheitsgründen hält Bazaarvoice bestimmte Richtlinien und Einschränkungen für HTML-Tags in benutzerdefinierten E-Mail-Vorlagen ein. Beachten Sie die folgenden Listen von zulässigen HTML-Tags und -Attributen, nicht unterstützter HTML-Tags und Richtlinien.

Zulässige HTML-Tags

HTML-Tags Attribute
html xmlns
body bgcolor, link, vlink, alink, background, marginheight, marginwidth, leftmargin, topmargin
head meta
title Attribute nicht zulässig
noscript Attribute nicht zulässig
frameset Attribute nicht zulässig
frame Attribute nicht zulässig
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 rows, cols, name, disabled, readonly, accesskey, placeholder, aria-label, aria-roledescription, aria-hidden
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
pre style, id, class
code style, id, class
del title, style, id, class
cite Attribute nicht zulässig
samp Attribute nicht zulässig
sub style, id, class
sup style, id, class
strike Attribute nicht zulässig
center aria-label, aria-roledescription, aria-hidden
blockquote title, style, id, class
caption style, id, class
hr style, id, class
br style, id, class
font 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 Attribute nicht zulässig
dl Attribute nicht zulässig
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 Attribute nicht zulässig
legend Attribute nicht zulässig
object id, classid, codebase, type, data, align, height, width, alt, bgcolor
embed src, movie, pluginspage, bgcolor, base, type, name, flashvars, align, height, width, allowfullscreen, quality, allowscriptaccess, seamlesstabbing, swliveconnect, wmode, allownetworking
php id
svg
Pfad
polygon
g id

Nicht unterstützte HTML-Tags

Bazaarvoice unterstützt nicht die Verwendung der folgenden HTML-Tags zur Verbesserung der Systemsicherheit.

  • source
  • footer
  • spancet
  • spanthis
  • nobr
  • wapper
  • g
  • iframe
  • svg
  • polygon
  • wbr
  • audio

Zulässige CSS-Stile

Bazaarvoice unterstützt die Verwendung der folgenden CSS-Stile nur, wenn Sie sie dem Textkörper Ihrer Seite hinzufügen.

CSS_Property Zulässige Werte Unterstützte Werte von
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
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
vertical-align
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 cue-before, cue-after
list-style list-style-type, list-style-position, list-style-image
marks
ouline outline-color, outline-style, outline-width
pause
text-decoration
border-spacing
clip
counter-increment
cursor auto, inherit, crosshair, default, pointer, move, e-resize, ne-resize, nw-resize, n-resize, se-resize, sw-resize, s-resize, w-resize, text, wait, help
text-shadow
Schriftart font-style, font-variant, font-weight, font-size, line-height, font-family
font-family
page
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

Richtlinien zum Erstellen von HTML-Vorlagen

Richtlinien für Cascading Style Sheets (CSS)

Wir unterstützen keine:

  • Einschränkung für das Überschreiben von Style-Tags: Das Überschreiben des Style-Tags innerhalb eines anderen Tags wird nicht unterstützt. Clients müssen das vorgegebene HTML-Format einhalten.
  • Sonderfall Style-Tag-Ausschluss: Der Sonderfall des Überschreibens des Style Tags innerhalb eines anderen Tags wird nicht unterstützt. Nur Tags der obersten Ebene style sind zulässig.
  • Entfernen von Schriftarten für bestimmte Größen: Schriftarten mit einer Größe von 12px oder 16px in Arial werden entfernt, da Antisamy diese Formate nicht unterstützt, ebenso wie Schriftarten mit numerischen Werten.
  • Style-Tag-Einschränkung: Innerhalb eines Tags ist nur ein Style Tag zulässig. Wenn mehrere Style Tags erkannt werden, wird das erste ignoriert und das zweite verwendet.
  • Lineare CSS-Farbverläufe: Lineare CSS-Farbverläufe werden aus Sicherheitsgründen nicht unterstützt. Verwenden Sie stattdessen Volltonfarbformate für das CSS-Styling.

    Zum Beispiel:

    Ersetzen
    <div style="background-image: linear-gradient(#005e2c, #008c43);"></div>
    durch
    <div style="background-color: #005e2c;"></div>

Allgemeine HTML-Richtlinien

Wir unterstützen keine:

  • Nicht geschlossene Tags: Stellen Sie sicher, dass Sie alle Tags schließen, damit sie ordnungsgemäß funktionieren.
  • Dokumententyp-Anforderung: Fügen Sie am Anfang von HTML-Dateien eine gültige Dokumententyp-Deklaration ein. Ohne sie funktioniert das Styling möglicherweise nicht ordnungsgemäß. Hier ist ein Beispiel für ein Standard-HTML-Format, das Sie kopieren können:
    HTML
    <!DOCTYPE html>
    <html>
    <head>
    <title>Page title</title>
    </head>
    <body>This is a paragraph</body>
    </html>

  • Startbedingung für HTML-Dateien: HTML-Dateien müssen immer mit einer Dokumententyp-Deklaration beginnen, nicht mit benutzerdefiniert oder anderen benutzerdefinierten Tags.
  • Umgang mit Bild-URL-Protokoll: Entfernen Sie zusätzliche „http: Tags aus Bild-URLs, damit sie ordnungsgemäß funktionieren.
  • Body-Tag-Anforderung: Stellen Sie sicher, dass Sie das body Tag in HTML-Dokumenten definieren, um ein ordnungsgemäßes Rendering zu gewährleisten.
  • Standard-Tag-Anforderung: Nur Standard-Tags sind zulässig. Nicht standardmäßige Tags, wie "-webkit-text-size-adjust:none", werden entfernt.
  • Leere Tags: Vermeiden Sie leere Tags, da sie das Systemverhalten negativ beeinflussen können.