I recently made a flatfile cms (+ edit in place). Here’s an example of how it shows the
's when hitting enter. The password is demo.
Now when you click inside (in any text field - there are 4), when hitting enter it makes a new line without showing a
tag. Clicking outside and inside the textarea, it will show all the line breaks you’ve made.
My question is how to hide the
tag. What I’ve searched, found and tried the following:
$content = str_replace("<br>", "\n", $content);
Also when using this code
$file1 = include '/ccms/files/edit.txt';
echo $file1; // This outputs the file.
to show the content on another page, it adds a number 1 to every textarea I have on the original page. You can see the number 1 error here.