1: <?php
2: /**
3: *
4: * @package XCube
5: * @version $Id: XCube_TextFilter.class.php,v 1.3 2008/10/12 04:30:27 minahito Exp $
6: * @copyright Copyright 2005-2007 XOOPS Cube Project <https://github.com/xoopscube/legacy>
7: * @license https://github.com/xoopscube/legacy/blob/master/docs/bsd_licenses.txt Modified BSD license
8: *
9: */
10:
11: /**
12: *
13: * @final
14: */
15: class XCube_TextFilter
16: {
17: var $mDummy=null; //Dummy member for preventing object be treated as empty.
18:
19: function getInstance(&$instance) {
20: if (empty($instance)) {
21: $instance = new XCube_TextFilter();
22: }
23: }
24:
25: function toShow($str) {
26: return htmlspecialchars($str, ENT_QUOTES);
27: }
28:
29: function toEdit($str) {
30: return htmlspecialchars($str, ENT_QUOTES);
31: }
32:
33: }
34: ?>
35: