mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Merge pull request #2955 from laanwj/2013_08_htmlescape
qt: Use GUIUtil::HtmlEscape to escape HTML
This commit is contained in:
commit
329de9bb64
@ -98,20 +98,12 @@ void SendCoinsDialog::on_sendButton_clicked()
|
||||
if (rcp.authenticatedMerchant.isEmpty())
|
||||
{
|
||||
QString address = rcp.address;
|
||||
#if QT_VERSION < 0x050000
|
||||
QString to = Qt::escape(rcp.label);
|
||||
#else
|
||||
QString to = rcp.label.toHtmlEscaped();
|
||||
#endif
|
||||
QString to = GUIUtil::HtmlEscape(rcp.label);
|
||||
formatted.append(tr("<b>%1</b> to %2 (%3)").arg(amount, to, address));
|
||||
}
|
||||
else
|
||||
{
|
||||
#if QT_VERSION < 0x050000
|
||||
QString merchant = Qt::escape(rcp.authenticatedMerchant);
|
||||
#else
|
||||
QString merchant = rcp.authenticatedMerchant.toHtmlEscaped();
|
||||
#endif
|
||||
QString merchant = GUIUtil::HtmlEscape(rcp.authenticatedMerchant);
|
||||
formatted.append(tr("<b>%1</b> to %2").arg(amount, merchant));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user