Manually establishes an encoding context when automatic detection is not possible.

The content type depends on the value provided to the type attribute. The content is checked for well-formedness based on its type:

  • css or text/css - must be well-formed CSS content. (Note: Currently only checks character values.)
  • javascript, application/javascript, or text/javascript - no validation
  • json or application/json - no validation
  • ld_json or application/ld+json - no validation
  • text or text/plain - no validation
  • url or text/url - must be a valid URL
  • xhtml or application/xhtml+xml - must be well-formed XHTML content. (Note: Currently only checks character values.)
  • xhtml_attribute or application/xhtml+xml+attribute - must be a valid XHTML attribute.
  • mysql or text/x+mysql - must be valid MySQL command "mysql" input
  • psql or text/x+psql - must be valid PostgreSQL command "psql" input
  • sh or text/x+sh - must be valid shell script

Tag Information

Tag Class: com.aoapps.encoding.taglib.EncodingTag
TagExtraInfo Class: com.aoapps.encoding.taglib.EncodingTagTEI
Body Content: scriptless
Display Name: None


Name Required Evaluation Type Description
type Yes Runtime Object

Specifies the type of content contained in the tag body


No Variables Defined.