Skip to content

HtmlUtilities::ConvertToText Crash in WinUI 3 App with C++/WinRT #3401

Answered by DarranRowe
sotanakamura asked this question in Q&A
Discussion options

You must be logged in to vote

A simple:

auto result = winrt::Windows::Data::Html::HtmlUtilities::ConvertToText(L"<Button>Hello</Button>");

works fine in the Xaml's main window constructor. This is in a WinUI 3 application referencing the Windows App SDK 1.2.3 package.

It would be nice to know exactly what you are doing. But according to the documentation, there is no reason why this runtime class shouldn't work, and the class not being agile isn't an issue since it only has a single static member.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@sotanakamura
Comment options

@DHancock
Comment options

@DarranRowe
Comment options

@sotanakamura
Comment options

Answer selected by sotanakamura
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants