On  2 Feb, Michael Ed wrote:
> Alexander Bokovoy wrote:
>> You may try the following code:
>> <?
>> $text = blixtformat($string);
>> ?>&(text:F);<?
>> SOME_CODE_HERE
>> ?>
> Nice try - now the linefeed works, but not my "blixtformat"
> replacements ...

Change the blixformat function so that the HTML
elements it produces come [< ... >] quoted so the
:F formatter outputs them as HTML:

function blixtformat($this_string) {
        $blixtcontent = ereg_replace("\n","[<<br><br>>]",$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;
}

> Blixten

/Bergie

-- 
-- Henri Bergius -- +358 40 525 1334 -- [EMAIL PROTECTED] --
               http://www.iki.fi/Henri.Bergius


--
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