Opened 4 months ago
lavc/htmlsubtitles.c does not parse HTML ampersand escapes
|Reported by:||Leo Izen||Owned by:|
|Version:||git-master||Keywords:||htmlsubtitles, subrip, srt, srtdec|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
libavcodec/htmlsubtitles.c has a parser for
<html> tags using angled brackets, but it ignores HTML escapes like
&. This means there's no way to put an HTML tag in a subtitle format like SubRip, because
< is passed as is, and
<tags> are not passed if they are not recognized.
For context WebVTT's parser does support
< (in compliance with spec), but SubRip cannot because there's no way to escape a
< using the current decoder/parser.