Commit f9705cb5 by sn
2 parents c88f6081 18e87fbb
......@@ -6,7 +6,7 @@
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
class Converter{
private static $LineBreaks = array ("\r", "\r\n", "\n");
private static $Specials = array (
'&' => '',
'' => '',
......@@ -65,7 +65,25 @@ class Converter{
public static function StringToUrl($param_Url) {
return htmlentities($param_Url);
}
/**
*
* function returns an cleared string/array from line breaks ("\r", "\r\n", "\n")
*
* @param mixed $param_value
* @param string $param_replaceWith, default ""
* @return mixed - cleared String/array
*/
public static function replaceLineBreaks($param_value,$param_replaceWith=''){
$return_value = $param_value;
if(is_array($return_value)){
foreach($return_value as $key => &$value){
$value = self::replaceLineBreaks($value,$param_replaceWith);
}
}else{
$return_value=str_replace(self::$LineBreaks, '', $return_value);
}
return $return_value;
}
}
......
......@@ -216,7 +216,7 @@
<input type="hidden" name="{$var_formpath}" value="{@value}" />
<xsl:if test="@show=1"><xsl:value-of select="@value" /></xsl:if>
</xsl:when>
<xsl:when test="@type='text'">
<xsl:when test="@type='text'">4
<!-- <textarea name="{$param_inputBE}[{@objvar}]" class="width" cols="40" rows="20">-->
<textarea name="{$var_formpath}" class="width" cols="40" rows="20">
<xsl:value-of select="." />
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!