[evolvis-commits] r12310: Fixed inconsistent indentation
mirabilos at evolvis.org
mirabilos at evolvis.org
Mon Feb 28 01:33:57 CET 2011
Author: mirabilos
Date: 2011-02-28 01:33:57 +0100 (Mon, 28 Feb 2011)
New Revision: 12310
Modified:
trunk/gforge_base/evolvisforge-5.1/gforge/common/include/TextSanitizer.class.php
Log:
Fixed inconsistent indentation
Modified: trunk/gforge_base/evolvisforge-5.1/gforge/common/include/TextSanitizer.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/common/include/TextSanitizer.class.php 2011-02-28 00:33:56 UTC (rev 12309)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/common/include/TextSanitizer.class.php 2011-02-28 00:33:57 UTC (rev 12310)
@@ -30,7 +30,7 @@
Class TextSanitizer extends Error {
- /**
+ /**
* convertExtendedCharsForEmail - Grabs some text with html special characters and converts them to the corresponding character.
*
* @param string The input string
@@ -49,7 +49,7 @@
return $text;
}
- /**
+ /**
* convertNeededTagsForEmail - Grabs some text with html tags and those which are important for display (<br>, <p>) convert accordingly
*
* @param string The input string
@@ -70,7 +70,7 @@
return $res;
}
- /**
+ /**
* SanitizeHtml - Grabs some text with all kinds of html code and parses it to make it safe
*
* @param string The HTML Code
@@ -80,7 +80,7 @@
$input = htmlspecialchars($input); // first strip all chars
- $input=str_replace('&','&',$input);
+ $input=str_replace('&','&',$input);
$input=str_replace('"','"',$input);
$input=str_replace('/>','/>',$input);
$input=str_replace('">','">',$input);
@@ -116,7 +116,7 @@
$input=str_replace('<p ','<p ',$input);
$input=str_replace('<li>','<li>',$input);
$input=str_replace('</li>','</li>',$input);
- $input=str_replace('<ul>','<ul>',$input);
+ $input=str_replace('<ul>','<ul>',$input);
$input=str_replace('</ul>','</ul>',$input);
$input=str_replace('<ol>','<ol>',$input);
$input=str_replace('</ol>','</ol>',$input);
@@ -152,12 +152,16 @@
$input=str_replace('<h2 ','<h2 ',$input);
$input=str_replace('<h3 ','<h3 ',$input);
$input=str_replace('<h4 ','<h4 ',$input);
- $input=str_replace('<h5 ','<h5 ',$input);
+ $input=str_replace('<h5 ','<h5 ',$input);
$input=str_replace('<h6 ','<h6 ',$input);
return $input;
}
}
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
?>
More information about the evolvis-commits
mailing list