[geeklog-cvs] Geeklog-1.x/system/classes story.class.php, 1.20, 1.21

Michael Jervis mjervis at qs1489.pair.com
Mon Feb 18 14:42:15 EST 2008


Update of /cvsroot/geeklog/Geeklog-1.x/system/classes
In directory qs1489.pair.com:/tmp/cvs-serv21576/system/classes

Modified Files:
	story.class.php 
Log Message:
Support for [raw][/raw] in HTML stories for painless HTML managing.

Index: story.class.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/system/classes/story.class.php,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** story.class.php	3 Jan 2008 18:55:45 -0000	1.20
--- story.class.php	18 Feb 2008 19:42:13 -0000	1.21
***************
*** 1519,1522 ****
--- 1519,1524 ----
              $out = str_replace('<pre><code>', '[code]', $out);
              $out = str_replace('</code></pre>', '[/code]', $out);
+             $out = str_replace('<!--raw--><span class="raw">', '[raw]', $out);
+             $out = str_replace('</span><!--/raw-->', '[/raw]', $out);
              $out = $this->_editUnescape($out);
              $out = $this->_displayEscape(htmlspecialchars($out));




More information about the geeklog-cvs mailing list