MCPcopy Create free account
hub / github.com/BlueMatthew/WechatExporter / parseText

Method parseText

WechatExporter/core/MessageParser.cpp:235–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233/////////////////////////////////////
234
235void MessageParser::parseText(const WXMSG& msg, const Session& session, TemplateValues& tv) const
236{
237 if ((m_options & SPO_IGNORE_HTML_ENC) == 0)
238 {
239 tv["%%MESSAGE%%"] = safeHTML(msg.content);
240 }
241 else
242 {
243 tv["%%MESSAGE%%"] = msg.content;
244 }
245}
246
247void MessageParser::parseImage(const WXMSG& msg, const Session& session, TemplateValues& tv) const
248{

Callers

nothing calls this directly

Calls 1

safeHTMLFunction · 0.85

Tested by

no test coverage detected