Viewing subtitles with embedded HTML
Simon Skogh
simon at swedishdrunkard.com
Wed Sep 19 00:04:06 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ben Edwards wrote:
> I am trying to watch a film with a subtitle file (.src) but it has
> html in the file that is not rendered, simply displayed. So I get
> something like:
>
> <font color="#ffffff"><i>Spain, 1944</i></font>
>
> Displayer on the screen. Does anyone know of any video players that
> can handle this or a simple util to remove the html.
>
> Regards,
> Ben
>
The first thing that pops in my head about removing the HTML is PHPs
strip_tags function.
http://php.net/strip_tags
I'd imagine Python and other languages supply similar functions that
might be easier to utilize if you do not already have PHP / PHP-cli
installed.
/ S
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFG8Gd2z+/vk9aBZhMRAp4JAJ4+FRzif98gvPeegp0rHmWWbdYhVwCeI0yW
Jd/+IcrW3Tp1k/komCiemek=
=CMRd
-----END PGP SIGNATURE-----
More information about the ubuntu-users
mailing list