[3.8] Fix #1622 : Sanitize captions display