Skip to content

Commit

Permalink
Decode HTML entities when copying text to clipboard (fixes #1850)
Browse files Browse the repository at this point in the history
Currently, when using `Copy` in the context menu, the text will be
HTML escaped (e.g. `"` becomes `"`). Add a function to decode
HTML entities when copying to clipboard.

This PR fixes issue #1850.
  • Loading branch information
Integral-Tech committed Jan 9, 2025
1 parent 2d34332 commit 628f861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Clipboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include "Clipboard.h"

#include <QClipboard>
#include <QTextDocumentFragment>
#include <QGuiApplication>
#include <QTextDocumentFragment>

Clipboard::Clipboard(QObject *parent)
: QObject(parent)
Expand Down

0 comments on commit 628f861

Please sign in to comment.