89 TMap<FStringView, FStringView> Attributes;
90 int32 OpeningTagStart;
93 using FCallbackFn = TFunction<void(
const FHtmlParser& Parser)>;
97 explicit FHtmlParser(
const FString& Source, FCallbackFn InCallback);
105 FTextRange GetContentRange()
const;
109 FTextRange GetOriginalRange()
const;
110 FStringView GetContent()
const;
111 const FString& GetOutput()
const;
114 int32 ParagraphStartIndex = 0;
115 TArray<FElement> ElementStack;
119 bool AdvanceMatching(FHtmlScanner::ETokenType TokenType);
125 void Newline(uint32 Index);
126 FCallbackFn Callback;
127 FHtmlScanner::FToken Current;
128 FHtmlScanner Scanner;