Skip to content

Incorrectly decoding encoded HTML tags #106

Open
@apjones6

Description

With a standard MD parser encoded HTML tags allows you to include them as readable text. For example (plain HTML included for comparison):

<iframe src="http://www.w3schools.com"></iframe>
<iframe src="http://www.w3schools.com"></iframe>

results in the output HTML:

<p>&lt;iframe src="http://www.w3schools.com"&gt;&lt;/iframe&gt;</p>
<iframe src="http://www.w3schools.com"></iframe>

However if I put this output HTML through to-markdown the encoded < and > characters are erroneously decoded. This results in the following markdown:

<iframe src="http://www.w3schools.com"></iframe>
<iframe src="http://www.w3schools.com"></iframe>

(whitespace lines removed from examples for brevity)

Metadata

Assignees

No one assigned

    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