Skallen gave me this ... now anyone can write {br} in a text and get a
new line. Perfect !
They don't have to panic as the use html.

function blixtformat($this_string) {
        $blixtcontent = ereg_replace("{b}","<b>",$this_string);
        $blixtcontent = ereg_replace("{/b}","</b>",$blixtcontent);
        $blixtcontent = ereg_replace("{p}","<p>",$blixtcontent);
        $blixtcontent = ereg_replace("{/p}","</p>",$blixtcontent);
        $blixtcontent = ereg_replace("{br}","<br>",$blixtcontent);
        return $blixtcontent;
}

then ... when I show the content ...

$txt = blixtformat($article->content); 
echo $txt; 
      
    

-- 
Regards,
Blixten

Cellular : +46 (0)708-999 105

Linux & KDE !

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to