/[gnuheter]/gnuheter/mainfile.php
ViewVC logotype

Diff of /gnuheter/mainfile.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.37 by aron, Tue Jan 7 23:25:23 2003 UTC revision 1.38 by metaur, Wed Jan 8 23:01:26 2003 UTC
# Line 207  function nowordlinksshow($str) { Line 207  function nowordlinksshow($str) {
207          return $str;          return $str;
208  }  }
209    
210    function ampersand($str) {
211            $str = ereg_replace('&', '&', $str);
212            $str = ereg_replace('&([a-z]+;)', '&\\1', $str);
213    
214            return $str;
215    }
216    
217  function printAllowedHTML() {  function printAllowedHTML() {
218          global $allowed_html;          global $allowed_html;
219    
# Line 232  function new_check_html($string, $strip Line 239  function new_check_html($string, $strip
239    
240      global $allowed_html;      global $allowed_html;
241    
242        $string = ampersand($string);
243    
244      if ($strip == 'nohtml')      if ($strip == 'nohtml')
245          return strip_tags($string);          return strip_tags($string);
246    

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26