Add Utils::String::toHtmlEscaped

This commit is contained in:
Chocobo1 2017-02-11 14:04:06 +08:00 committed by sledgehammer999
parent eba45a0b26
commit 6ca3e4f094
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2
6 changed files with 21 additions and 8 deletions

View file

@ -314,12 +314,12 @@ void PropertiesWidget::loadTorrentInfos(BitTorrent::TorrentHandle *const torrent
label_total_size_val->setText(Utils::Misc::friendlyUnit(m_torrent->totalSize()));
// Comment
comment_text->setText(Utils::Misc::parseHtmlLinks(m_torrent->comment()));
comment_text->setText(Utils::Misc::parseHtmlLinks(Utils::String::toHtmlEscaped(m_torrent->comment())));
// URL seeds
loadUrlSeeds();
label_created_by_val->setText(m_torrent->creator());
label_created_by_val->setText(Utils::String::toHtmlEscaped(m_torrent->creator()));
// List files in torrent
PropListModel->model()->setupModelData(m_torrent->info());