mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
DICT servers: ignore refs in html
This commit is contained in:
parent
c6f8d29a5a
commit
73ec1b5950
|
@ -833,8 +833,10 @@ void DictServerArticleRequest::run()
|
|||
else
|
||||
articleStr = Html::preformat( articleText.toUtf8().data() );
|
||||
|
||||
articleText = QString::fromUtf8( articleStr.c_str(), articleStr.size() )
|
||||
.replace(refs, "<a href=\"gdlookup://localhost/\\1\">\\1</a>" );
|
||||
articleText = QString::fromUtf8( articleStr.c_str(), articleStr.size() );
|
||||
if( !contentInHtml )
|
||||
{
|
||||
articleText = articleText.replace(refs, "<a href=\"gdlookup://localhost/\\1\">\\1</a>" );
|
||||
|
||||
pos = 0;
|
||||
#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
|
||||
|
@ -919,6 +921,7 @@ void DictServerArticleRequest::run()
|
|||
pos += 30;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
articleData += string( "<div class=\"dictd_article\">" )
|
||||
+ articleText.toUtf8().data()
|
||||
|
|
Loading…
Reference in a new issue