HTML Block escapes & after a < inside the block #19371
Labels
[Block] HTML
Affects the the HTML Block
[Type] Bug
An existing feature does not function as intended
Describe the bug
The gutenberg editor sometimes escapes the char
&
>&
inside ahtml
block.This entirely breaks the usage of the
wp:html
block.To reproduce
I don't know exactly how to reproduce. But it seems like the
<
comparator breaks it.Could have to do something with your detection of the
<!-- wp:html -->
?Expected behavior
The
&
should not be escaped as shown in row 174.Screenshots
Backend editor:
Produced frontend code:
Every
&
below line 174 is escaped - it's irrelevant where i place it:If i place a
>
directly after<
, the&
is not escaped anymore:Just for fun i placed inside a comment a
>
and it's working (as workaround):Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: