Fix #1622 : Sanitize captions display
Merge pull request #843 from romainneutron/fix-1622

[3.8] Fix #1622 : Sanitize captions display