Skip to content

Convert HTML to Text #566

Open
Open
@TonyValenti

Description

Here is what to include in your request to make sure we implement a solution as quickly as possible.

1. Description

It would be really nice if there were a method I could use to convert HTML to text.
This is not the same as Node.InnerText or HtmlEntity.DeEntitize

The goal is that HTML would be converted to text with line breaks that likely represents about what a user would see on the screen.

I propose using the following rules:

  1. <br> inserts a new line.
  2. Content after a </p> inserts two new lines.
  3. URLs generate text like: ``` Text [Link]``

Can you add something like this?

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions