I am creating a news posting system and I'm wondering if you'll be able to instantly place a <br /> tag anywhere there's a brand new line?

For instance, if published a news article using the following text within the text area:

New news article

- 1
- 2
- 3

it might add this towards the news database:

New news article<br/>
- 1<br/>
- 2<br/>
- 3<br/>

It is possible to method of doing this?



You need to replace "n" character with "br" tag while parsing $_Publish data.

For instance:

 * Cleans incoming data
 * @param array $data - Incoming data, $_GET or $_POST, for example
 * @return void
function cleanPost(&$data)
    foreach ($data as $k => $v)
        if (!is_array($v))
            // Your filters here
            $v = str_replace("\n", '<br />', $v);
        $data[$k] = $v;