The body of this tag provides the content to the email or any of its parts.
Leading and trailing whitespace on the content is trimmed.
Allowed within <email:email> or <email:bodypart> tags.
The content type depends on the value provided to the type attribute, and defaults to either
text/html
or application/xhtml+xml
, depending on the current
serialization
. The content is checked for well-formedness based on its type:
javascript
,application/javascript
, ortext/javascript
- no validationjson
orapplication/json
- no validationld_json
orapplication/ld+json
- no validationtext
ortext/plain
- no validationurl
ortext/url
- must be a valid URLxhtml
orapplication/xhtml+xml
- must be well-formed XHTML content. (Note: Currently only checks character values.)xhtml_attribute
orapplication/xhtml+xml+attribute
- must be a valid XHTML attribute.mysql
ortext/x+mysql
- must be valid for the MySQL command line "mysql"psql
ortext/x+psql
- must be valid for the PostgreSQL command line "psql"sh
ortext/x+sh
- must be valid shell script
Tag Information
Tag Class: | com.newmediaworks.taglib.email.ContentTag |
---|---|
TagExtraInfo Class: | None |
Body Content: | scriptless |
Display Name: | None |
Attributes
Name | Required | Evaluation | Type | Description |
---|---|---|---|---|
type | No | Runtime | String |
Specifies the type of content as either short form for a recognized media type or the full MIME type.
Defaults to the content type of the current |
serialization | No | Runtime | String |
When |
doctype | No | Runtime | String |
The <!DOCTYPE> to use,
must be one of
Defaults to Note: The doctype is not written by this tag, however this setting affects the output of nested context-aware tags. To write the doctype, see <ao:html> |