Hi all, I noticed that characters like <>"'& in waypoint comments which need to be escaped for html/xml are shown in the escaped form in the pop-up. A trivial fix is attached.
Cheers, Albrecht.
Index: src/IItem.cpp
===================================================================
--- src/IItem.cpp (Revision 3565)
+++ src/IItem.cpp (Arbeitskopie)
@@ -20,6 +20,7 @@
#include "IItem.h"
#include <QtGui>
+#include <QTextDocument>
quint32 IItem::keycnt = 0;
@@ -56,7 +57,8 @@ void IItem::genKey()
void IItem::removeHtml(QString &str)
{
- str.remove(QRegExp("<head.*[^>]*><\\/head>"));
- str.remove(QRegExp("<[^>]*>"));
- str = str.trimmed();
+ QTextDocument html;
+
+ html.setHtml(str);
+ str = html.toPlainText();
}
pgpyPEaJVfZjT.pgp
Description: PGP signature
------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412
_______________________________________________ Qlandkartegt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
