parse captions.txt only once per dir, not once per file per dir

remove this weird explode('/n'), it serves no purpose.
use fgetss to strip html from captions (it wouldn't render anyway).