/** * @param string $html_ * @param \Components\Io_Charset $charset_ * * @return \Components\Text_Html_Tidy */ public static function tidy($html_, Io_Charset $charset_ = null) { if (null === $charset_) { $charset_ = Io_Charset::UTF_8(); } return new Text_Html_Tidy($html_, $charset_); }
public function __construct($value_, Io_Charset $charset_ = null) { if (null === $charset_) { $charset_ = Io_Charset::UTF_8(); } $this->m_value = $value_; $this->m_charset = $charset_; }
/** * @return \Components\Io_Mimetype */ public function getMimetype() { if (null === $this->m_mimeType) { if (!($this->m_mimeType = Io_Mimetype::forFileName($this->m_uri->getPath()))) { $this->m_mimeType = Io_Mimetype::TEXT_HTML(Io_Charset::UTF_8()); } } return $this->m_mimeType; }
/** * @return \Components\Mail_Part_Text */ public static function utf8($content_) { return new self($content_, Io_Charset::UTF_8()); }
/** * @return \Components\Mail */ public static function utf8() { return new self(Io_Charset::UTF_8()); }