atomex v0.2.0 Atomex.Types.Text

A text as described in Atom specs. See this link

Summary

Functions

Create a new Text for the title, summary or rights tags. See this link

Functions

new(tag, content, type)

Create a new Text for the title, summary or rights tags. See this link

Parameters

  • tag: tag name (:title, :summary or rights)
  • content: a String or a XmlBuilder element list
  • type: a String with the content type (default=text). Can be:

    • html: Contains entity escaped html
    • xhtml: Contains inline xhtml, wrapped in a div element (you must pass content as {:cdata, content} if using this)