xtreamgate.cc is an XtreamGate support site. Official service at xtreamgate.com
Skip to content
All articles

Check a Literal Angle Bracket in WebVTT Text

Caption text can include markup that changes how it is rendered. Use the WebVTT character reference for a literal bracket when the characters themselves are important to your fixture. Inspect both authored and displayed strings.

Make the check

Build a small original cue that is meant to display the exact screen message “Press now.” Keep the source copy. Compare a raw-angle-bracket version with a version that uses character references around OK. Record the text displayed at the same timestamp.

Worked example

One fixture writes Press <OK> now as raw caption source. Another writes Press &lt;OK&gt; now. The latter explicitly represents the intended literal less-than and greater-than signs. Compare the display for both versions without assuming every renderer handles the raw string alike.

What to record

Use a distinctive fictional field label in any demonstration. When the difference matters for a real caption, capture just enough source and output to show which characters were lost or changed.

Reference

W3C WebVTT specification defines cue parsing and supported character references.