summaryrefslogtreecommitdiff
path: root/src/lib/text_decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-02-27 23:20:14 +0100
committerCarl Hetherington <cth@carlh.net>2023-02-27 23:20:14 +0100
commit15fe326c723b88f779d69fe0ae737d27d69e6e6f (patch)
tree3c96a84f975b009d6835ec324518d95049bbb7b8 /src/lib/text_decoder.h
parentae859e7d02fb889ab966e0d69e2d0c42937620fe (diff)
Strip disallowed characters from subtitles before they get into the XML.
Diffstat (limited to 'src/lib/text_decoder.h')
-rw-r--r--src/lib/text_decoder.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/text_decoder.h b/src/lib/text_decoder.h
index 3b25e54cb..1a7632fd8 100644
--- a/src/lib/text_decoder.h
+++ b/src/lib/text_decoder.h
@@ -66,6 +66,8 @@ public:
return _content;
}
+ static std::string remove_invalid_characters_for_xml(std::string text);
+
boost::signals2::signal<void (ContentBitmapText)> BitmapStart;
boost::signals2::signal<void (ContentStringText)> PlainStart;
boost::signals2::signal<void (dcpomatic::ContentTime)> Stop;