Calling addslashes_js for $navbits[lastelement]?
Need some serious help with this one:
I'm working on a hack that dynamically creates bookmark links on each page of the forums, and the code breaks whenever it runs into a subforum or thread with an apostrophe in the title. I need to run addslashes_js on $navbits[lastelement] in order to solve this issue, but putting this:
$booktitle = addslashes_js($navbits[lastelement]);
in a plug-in at the global_start location does nothing.
Anyone?
EDIT: Figured it out. Thanks for the no help.
|