Hi @johnwinch42,
Could you clearly explain exactly what your problem is? Surely if you type in “It’s a test” in the image description then you want the description of the image to display as “It’s a test”. That’s what you’ve described in your problem…
If you could give a bit more clarity on your problem. Will be more than willing to provide some assistance if possible.
My bad I forgot the “/”, you’ll see more clearly now.
If I type something like this in the photo’s description : “It’s a test” it’s displaying ‘It’s a test’ (there’s a / between the t and the s)
The string doesn’t get escaped properly. It’s very easy easy to fix. Contact the plugin author to let him know.
Isn’t there a way to fix it myself ?
Wrap the photo description variable in stripslashes().
Thanks, here’s the code
how do I put the stripslashes ? I’ve tried with an echo but it didn’t work.
Here’s the original code “
I’ve wrap it in stripslashes like this
`<?php
$str = bp_album_picture_desc();
echo stripslashes($str);
?>`
It’s still displaying the /, maybe there’s something to fix in the box where I write/edit the description ? If I try to write/edit something with a ‘ it’s automatically giving me an error message and correcting the sentence with a /.