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

Multiline XML opening tag is not escaped #3237

Open
titovmx opened this issue Apr 8, 2024 · 0 comments
Open

Multiline XML opening tag is not escaped #3237

titovmx opened this issue Apr 8, 2024 · 0 comments
Labels

Comments

@titovmx
Copy link

titovmx commented Apr 8, 2024

Describe the bug

The editor loses XML/HTML tags if the opening tag is written in a few lines.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://ui.toast.com/tui-editor
  2. Open WYSIWYG tab
  3. Paste the following XML:
<Block
  orderId='abc'>
<Block/>
  1. Switch to Markdown and back
  2. The opening tag is grey on Markdown tab and disappeared after switching back to WYSIWYG mode.

Expected behavior

I want to see the same XML

Screenshots

Screenshot 2024-04-08 at 13 37 48 Screenshot 2024-04-08 at 13 38 02 Screenshot 2024-04-08 at 13 38 13

Desktop:

  • OS: Mac OS v12.4
  • Browser: Chrome 123.0.6312.87

Additional context

When the opening tag is written in one line it is properly escaped.
The closing tag is also properly escaped in this example.

@titovmx titovmx added the Bug label Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant