Messagelib

converthtmltoplaintext.h
1/*
2 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5
6*/
7
8#pragma once
9
10#include <QString>
11namespace MimeTreeParser
12{
13class ConvertHtmlToPlainText
14{
15public:
16 ConvertHtmlToPlainText();
17 ~ConvertHtmlToPlainText();
18
19 [[nodiscard]] QString generatePlainText();
20
21 [[nodiscard]] QString htmlString() const;
22 void setHtmlString(const QString &htmlString);
23
24private:
25 static void toCleanPlainText(QString &text);
26 QString mHtmlString;
27};
28}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.