mimeEntityGetText

SYNOPSIS

varchar mimeEntityGetText(mimeEntity entityOrReader)

Parameters:

  • entityOrReader - A mimeEntity or mimeReader object

Returns:

  • varchar formatted text of the entity's body


DESCRIPTION
The mimeEntityGetText function returns the formatted text of the entity's body, i.e. the equivalent of calling <urlinfo text> (here) for a fetched page. E.g. HTML tags and entities will be removed and translated if the body MIME type is text/html. The text is typically returned in UTF-8 if the entity body source charset was recognized and supported; see mimeEntityGetTextCharset (here).


EXAMPLE

<$ret = (mimeEntityGetText($reader))>
  Text of entity: $ret


SEE ALSO
mimeEntityGetBody


Copyright © Thunderstone Software     Last updated: Apr 15 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.