Do all text -> HTML conversion for subtitles in the same place.
[dcpomatic.git] / src / lib / render_text.cc
index e47098ee906916da55ce02ba71686a6c486726d0..7bb7d6b456990d2b12f21f1a4ec343d8534290d2 100644 (file)
@@ -77,11 +77,7 @@ marked_up (list<StringText> subtitles, int target_height, float fade_factor)
                /* Between 1-65535 inclusive, apparently... */
                out += "alpha=\"" + dcp::raw_convert<string>(int(floor(fade_factor * 65534)) + 1) + "\" ";
                out += "color=\"#" + i.colour().to_rgb_string() + "\">";
-
-               string t = i.text();
-               replace_all(t, "&", "&amp;");
-               out += t;
-
+               out += i.text();
                out += "</span>";
        }