clean_pre ( $matches )

Source file: app/functions/parsecode-function.php

View source


Used by

Uses


Source

function clean_pre($matches)
{
    if (is_array($matches))
        $text = $matches[1] . $matches[2] . "</pre>";
    else
        $text = $matches;

    $text = str_replace('<br />', '', $text);
    $text = str_replace('<p>', "\n", $text);
    $text = str_replace('</p>', '', $text);

    return $text;
}


User Contributed Notes

You must log in before being able to contribute a note.