Commit 37091c8d authored by Ming Rui Zhang's avatar Ming Rui Zhang

messagewebview: call replaceText with proper escape characters

Change-Id: I7bfb39a9bae47534f075ee31b9849c76ba8a8da8
parent a7389fcc
......@@ -208,7 +208,7 @@ bool MessageWebView::eventFilter(QObject *watched, QEvent *event)
void MessageWebView::setMessagesContent(const QString& text)
{
page()->runJavaScript(QStringLiteral("replaceText('%1');").arg(text));
page()->runJavaScript(QStringLiteral("replaceText(`%1`)").arg(text));
}
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment