Skip to content
Snippets Groups Projects
Commit 378045ee authored by Langella Olivier's avatar Langella Olivier
Browse files

escape text for HTML output

parent 07d1e8cf
No related branches found
No related tags found
No related merge requests found
......@@ -250,8 +250,8 @@ ProteinWindow::doSaveSvg()
QTextDocument *doc = new QTextDocument();
doc->setHtml(
QString("<p>%1</p><p>%2</p><p>%3</p>")
.arg(_p_protein_match->getProteinXtpSp().get()->getAccession())
.arg(_p_protein_match->getProteinXtpSp().get()->getDescription())
.arg(_p_protein_match->getProteinXtpSp().get()->getAccession().toHtmlEscaped())
.arg(_p_protein_match->getProteinXtpSp().get()->getDescription().toHtmlEscaped())
.arg(ui->sequenceTextEdit->toHtml()));
doc->setUndoRedoEnabled(false);
// doc->setHtml("<p><span style=\"color:#000000;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment