Sep 09, 2005 23:29
Well, a little trinket I was working on today has been pressed into minimal service a bit ahead of schedule.
What, you might ask?
Nothing big, just that I was farting around and working on a character counter thingy for the tag-board. I've got it working, to the point where it accounts for five characters that tag-board treats "funny" (in a completely predictable way. I haven't tested some other special chars)...
Let me say this:
1) I hate magicquotes.
2) Running htmlspecialchars (likely an equivilent thereof) before putting things into a database just... >.<
3) Counting how many characters the user submitted should be done before either of these conversions.
code,
mzdm,
javascript