Page 1 of 1

spoiler bug

PostPosted: Sat Oct 18, 2003 9:47 am
by Mithrandir
Hey DJ (or whoever),
The spoiler tag doesn't work if you have an apostrophe (') in the pop-up text. It's a javascript problem. When you submit something with an odd number of apostrophies it will simply not pop-up.

I noticed, however that if you use a backtick (`) character it will work just fine. Think you can edit the pop-up script code to do a simple transliteration (substitution of the back-tick for any apostrophies)?

oldphil

PostPosted: Sat Oct 18, 2003 9:51 am
by Straylight
It'd need quite a bit of tweaking - the tags are made by entering html and variable names into a vB control panel, instead of modifying the parser script. I might take a look later though. (ie. hard code spoiler tags into the parser). I wonder whether /' would work

PostPosted: Sat Oct 18, 2003 10:24 am
by Mithrandir
Yeah, that's tricky. The real problem is that you have to give straight text to the pop-up window. No & #039; stuff will work.
*sigh*
As for escaping it, my guess is you would need to backslash it: \'

PostPosted: Sat Oct 18, 2003 12:18 pm
by inkhana
Well, that explains why mine never worked...-_- I thought I was braindead or something.