* Minor TOS change
[specialops2.git] / lib / class.Message_Plaintext.php
blob1869eb8cf7de1c986d5c92f891f7c18c4c3f5658
1 <?php
2 /**
3 * Just HTML-encodes everything
5 * @author Ant P. <xmpp:ant@specialops.ath.cx>
6 * @version 2.3
7 * @license http://specialops.ath.cx/repos/so2/trunk/COPYING
8 */
9 require_once 'lib/iface.Message3.php';
11 class Message_Plaintext implements Message3
13 private $output;
15 function __construct($input, $formatting = null)
17 $this->output = nl2br(htmlspecialchars($input));
20 function validate()
22 return null;
25 function getOutput()
27 return $this->output;