hi, danke
also einfach diese script dazu einfügen?`
sorry habe sogut wie keine ahnung von php ^^
PHP-Code:
<?php
function nl2any($string, $tag = 'p', $feed = '') {
// making tags
$start_tag = "<$tag" . ($feed ? ' '.$feed : '') . '>' ;
$end_tag = "</$tag>" ;
// exploding string to lines
$lines = preg_split('`[\n\r]+`', trim($string)) ;
// making new string
$string = '' ;
foreach($lines as $line)
$string .= "$start_tag$line$end_tag\n" ;
return $string ;
}
function any2nl($string, $tag = 'p') {
//exploding
preg_match_all("`<".$tag."[^>]*>(.*)</".$tag.">`Ui", $string, $results) ;
// reimploding without tags
return implode("\n", array_filter($results[1])) ;
}
?>