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 validationjsonorapplication/json- no validationld_jsonorapplication/ld+json- no validationtextortext/plain- no validationurlortext/url- must be a valid URLxhtmlorapplication/xhtml+xml- must be well-formed XHTML content. (Note: Currently only checks character values.)xhtml_attributeorapplication/xhtml+xml+attribute- must be a valid XHTML attribute.mysqlortext/x+mysql- must be valid for the MySQL command line "mysql"psqlortext/x+psql- must be valid for the PostgreSQL command line "psql"shortext/x+sh- must be valid shell script
Tag Information
| Tag Class: | com.newmediaworks.taglib.email.legacy.ContentTag |
|---|---|
| TagExtraInfo Class: | None |
| Body Content: | JSP |
| 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> |