Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<input> is not escaped inside inline code inside <div> #1075

Open
andreymal opened this issue Nov 24, 2020 · 1 comment
Open

<input> is not escaped inside inline code inside <div> #1075

andreymal opened this issue Nov 24, 2020 · 1 comment
Labels
bug Bug report. extension Related to one or more of the included extensions. needs-confirmation The alleged behavior needs to be confirmed.

Comments

@andreymal
Copy link

andreymal commented Nov 24, 2020

I wrote something like this:

<div class="outer" markdown="1">

Code: `<label><input/></label>`

</div>

With stable Markdown 3.3.3 I get the expected result:

>>> print(markdown.markdown('<div class="outer" markdown="1">\n\nCode: `<label><input/></label>`\n\n</div>', extensions=["extra"]))

<div class="outer">
<p>Code: <code>&lt;label&gt;&lt;input/&gt;&lt;/label&gt;</code></p>
</div>

But I installed latest git version to solve #1066 and I got mysterious result:

>>> print(markdown.markdown('<div class="outer" markdown="1">\n\nCode: `<label><input/></label>`\n\n</div>', extensions=["extra"]))

<div class="outer">
<p>Code: <code>&lt;label&gt;<input/>&lt;/label&gt;</code></p>
</div>

label is escaped properly, but input is not escaped, it's strange

@andreymal andreymal changed the title <input> is not escaped inside inline code <input> is not escaped inside inline code inside <div> Nov 24, 2020
@waylan
Copy link
Member

waylan commented Dec 8, 2020

I suspect this is related to #1074, possibly even a duplicate.

@waylan waylan added the needs-confirmation The alleged behavior needs to be confirmed. label Dec 8, 2020
@waylan waylan added bug Bug report. extension Related to one or more of the included extensions. labels Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report. extension Related to one or more of the included extensions. needs-confirmation The alleged behavior needs to be confirmed.
Projects
None yet
Development

No branches or pull requests

2 participants