Hello everyone, my name is Rob. (obvious huh?)
Brief description: This project saves all the content to .txt files, you can edit them with a password that is saved in a .php file. You can edit the content with simply clicking on it (edit-in-place Ajax technology).
I'm stuck at 99% of this flat-file (no database - writes to text files) CMS. Here's how it looks like. (password is admin)
My problem are <br> tags.
I need to make them invisible, to when the user hits enter (new line), it would make the new line, but the <br> tag would be hidden.
So far I've tried:
$content=nl2br($content);and$content = str_replace("<br>", "\n", $content); and also the code below for outputting the content, but that also didn't help.
<?php echo "<pre>"; echo $file1; echo "</pre>";?>
I'm really stuck in confusion and don't know what do to next?