[PR #315] Fix ToPlainText with htmlentity #944

Open
opened 2026-01-29 14:47:38 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/xoofx/markdig/pull/315

State: closed
Merged: Yes


The ToPlainText should not resulted in html entities.

Current version:

> Markdig.Markdown.ToPlainText("foo<bar")
"foo&lt;bar\n"
> Markdig.Markdown.ToPlainText("foo&lt;bar")
"foo&lt;bar\n"

Expacted:

> Markdig.Markdown.ToPlainText("foo<bar")
"foo<bar\n"
> Markdig.Markdown.ToPlainText("foo&lt;bar")
"foo<bar\n"
**Original Pull Request:** https://github.com/xoofx/markdig/pull/315 **State:** closed **Merged:** Yes --- The `ToPlainText` should not resulted in html entities. Current version: ```cs > Markdig.Markdown.ToPlainText("foo<bar") "foo&lt;bar\n" > Markdig.Markdown.ToPlainText("foo&lt;bar") "foo&lt;bar\n" ``` Expacted: ```cs > Markdig.Markdown.ToPlainText("foo<bar") "foo<bar\n" > Markdig.Markdown.ToPlainText("foo&lt;bar") "foo<bar\n" ```
claunia added the pull-request label 2026-01-29 14:47:38 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#944