Elgg  Version 6.1
PlainTextPart.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Email;
4 
7 
15 class PlainTextPart extends Part {
16 
20  public function __construct($content = '') {
21 
23  $content = html_entity_decode($content, ENT_QUOTES, 'UTF-8');
24  $content = wordwrap($content);
25 
26  parent::__construct($content);
27 
28  $this->setType(Mime::TYPE_TEXT);
29  $this->setCharset('UTF-8');
30  $this->setId('plaintext');
31  }
32 }
const TYPE_TEXT
Definition: Mime.php:40
Plaintext part for email.
$content
Set robots.txt action.
Definition: set_robots.php:6
elgg_strip_tags(string $string, string $allowable_tags=null)
Strip tags and offer plugins the chance.
Definition: output.php:323