{ ***************************************************************************** This file is part of LazUtils. See the file COPYING.modifiedLGPL.txt, included in this distribution, for details about the license. ***************************************************************************** Author: Juha Manninen Abstract: Render HTML into plain text by stripping tags and using indentation, newlines and extra characters including Unicode Emojis. } unit HTML2TextRender; {$mode objfpc}{$H+} interface uses Classes, SysUtils, // LazUtils LConvEncoding; type { THTML2TextRenderer renders HTML into plain text as well as possible } THTML2TextRenderer = class private fHTML, fOutput: string; fMaxLines: integer; fLineEndMark: String; // End of line, by default standard LineEnding fTitleMark: String; // Text at start/end of title text: