Ticket #2605: mythnews.patch

File mythnews.patch, 859 bytes (added by otto at kolsi dot fi, 15 years ago)
  • mythplugins/mythnews/mythnews/newsengine.cpp

     
    241241    for (unsigned int i = 0; i < items.count(); i++) {
    242242        itemNode = items.item(i);
    243243        title    = itemNode.namedItem(QString::fromLatin1("title")).toElement().text().simplifyWhiteSpace();
     244
     245        if(!title.isNull())
     246          ReplaceHtmlChar(title);
     247
    244248        QDomNode descNode = itemNode.namedItem(QString::fromLatin1("description"));
    245249        if (!descNode.isNull())
    246250        {
     
    286290    s.replace("&apos;", "\'");
    287291    s.replace("&#8230;",QChar(8230));
    288292    s.replace("&#233;",QChar(233));
     293    s.replace("&mdash;", QChar(8212));
     294    s.replace("&nbsp;", " ");
    289295}
    290296