mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
fix: change html unescape to Html::unescape
This commit is contained in:
parent
bd58c6c37d
commit
fcf0fec3ff
|
@ -41,6 +41,7 @@
|
||||||
#include "gddebug.hh"
|
#include "gddebug.hh"
|
||||||
#include "ripemd.hh"
|
#include "ripemd.hh"
|
||||||
#include "utils.hh"
|
#include "utils.hh"
|
||||||
|
#include "htmlescape.hh"
|
||||||
|
|
||||||
namespace Mdict
|
namespace Mdict
|
||||||
{
|
{
|
||||||
|
@ -373,7 +374,7 @@ bool MdictParser::readHeader( QDataStream & in )
|
||||||
{
|
{
|
||||||
#if( QT_VERSION >= QT_VERSION_CHECK( 6, 0, 0 ) )
|
#if( QT_VERSION >= QT_VERSION_CHECK( 6, 0, 0 ) )
|
||||||
styleSheets_[ lines[ i ].toInt() ] =
|
styleSheets_[ lines[ i ].toInt() ] =
|
||||||
pair< QString, QString >( Utils::unescapeHtml( lines[ i + 1 ] ), Utils::unescapeHtml( lines[ i + 2 ] ) );
|
pair< QString, QString >( Html::unescape( lines[ i + 1 ] ), Html::unescape( lines[ i + 2 ] ) );
|
||||||
#else
|
#else
|
||||||
styleSheets_[ lines[ i ].toInt() ] = pair< QString, QString >( lines[ i + 1 ], lines[ i + 2 ] );
|
styleSheets_[ lines[ i ].toInt() ] = pair< QString, QString >( lines[ i + 1 ], lines[ i + 2 ] );
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue