My problem is, I can't manage to hide the <br> tag in the textarea once it saves itself to a text file. I wouldn't want to remove it, but just hide it.
So far I've tried
$content=nl2br($content); and $content = str_replace("<br>", "n", $content);
but neither worked, I've also tried outputting the txt files with <pre> tags but that also failed.
I'm running of out ideas, anyone, please?
6:00 AM Sep 12, 2010
wfiedler
Moderator
posts 100
2
Wow, Robbie that's a CMS I always was looking for. Great job you did.
I can't solve your problem, because I'm a miserable PHP programmer. Perhaps someone can help. Bob (Baker)???
But, can I have the files to integrate a Javascript markup editor for the editable textareas? I've written several ones and would like to give it a try.
Thanks in advance.
-Wolfram
7:28 AM Sep 12, 2010
tomw
Member
posts 74
3
Robbie, try this and see if it works:
$content = str_replace("<br />", "\n", $content);
Wolfi, I see you still looking for that perfect CMS.
8:20 AM Sep 12, 2010
wfiedler
Moderator
posts 100
4
@Tom , you're right. It's a passion… Keep It Simple And Smart = K.I.S.S.
I'm also looking in Web Design to get the ultimate out of nearly nothing. It's like searching for the Holy Grail…
Propably I'll never find it, but it's a lot of fun and it keeps me young .
9:08 AM Sep 12, 2010
robbie
Member
posts 38
5
Tomw, that didn't work, it makes the <br> disappear but it also makes it inactive (as if <br>'s dont work at all)
Heres a list of things I've tried, but also didn't work.