think tank forum

ttf development » php prints \r\n

lucas's avatar
18 years ago
link
lucas
i ❤ demo
so i almost have a working post edit feature with revisions.

but for some reason when i try to print the patched HEAD revision, php will print this:

test\r\n\r\nthis22\r\n\r\nshit!333


instead of this:

test

this22

shit!333


any ideas?

p.s. this is the same problem that maple had with checking $profile against $user["profile"].. he had to run one through clean() to get it to compare. i want to undo clean, i think. ideas?
lucas's avatar
18 years ago
link
lucas
i ❤ demo
my guess after thinking about it is that it's just a matter of stripslashes().

stay tuned!
lucas's avatar
18 years ago
link
lucas
i ❤ demo
haha, silly misuse of clean(). gotta be careful with that function. in fact, i'm probably gonna rethink ttf best practices as a result.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
okay, i have revisioned editing working! :D

with that silly, weird diff code.. :/

i'll commit after i test the hell out of it. the commit includes major changes to the table structure, including changes to archiving methods.