Packages

p

emil

jsoup

package jsoup

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. case class BodyClean[F[_]](change: (Document) ⇒ Document)(implicit evidence$1: Applicative[F]) extends Trans[F] with Product with Serializable

    Modifies/cleans html bodies.

  2. case class HtmlBodyViewConfig(textToHtml: (String) ⇒ String = Defaults.defaultTxtToHtml, modify: (Document) ⇒ Document = Defaults.defaultModify, dateFormat: DateTimeFormatter = Defaults.defaultDateFormatter, zone: ZoneId = ZoneId.of("UTC")) extends Product with Serializable

    Settings for creating a html document from a mail body.

    Settings for creating a html document from a mail body.

    textToHtml

    in case there is only a plain text body, it must be converted to html. The default is a very simple approach, it is recommended to use the emil-markdown module for a more sophisticated variant.

    dateFormat

    If a mail header is supplied, html is amended with the datetime where this formatter is used

    zone

    the timezone to use when formatting the datetime

Value Members

  1. object BodyClean extends Serializable
  2. object EmailWhitelist

    A even more relaxed whitelist.

    A even more relaxed whitelist. It tries to retain all formatting information, since e-mails usually contain a lot of style' tags, which is in contrast to websites. It throws away all non http/s protocol images/links.

    The jsoup Whitelist' contains more strict variants.

  3. object HtmlBodyView

    Creates a valid html document given a MailBody'.

    Creates a valid html document given a MailBody'.

    Often, html body parts are only html snippets, missing a valid html' declaration. If the body is text/plain, it is converted into basic html. The emil-markdown' module should be included to supply a more sophisticated text->html conversion.

  4. object HtmlBodyViewConfig extends Serializable

Ungrouped