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

[BUG] HTML rendering make message bubble break #2145

Open
1 task done
hoangdat opened this issue Nov 22, 2024 · 1 comment
Open
1 task done

[BUG] HTML rendering make message bubble break #2145

hoangdat opened this issue Nov 22, 2024 · 1 comment
Assignees
Labels
bug Something isn't working QA::Critical

Comments

@hoangdat
Copy link
Member

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Paste the content of SVG to the composer

<svg width="40" height="41" viewBox="0 0 40 41" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect y="0.5" width="40" height="40" rx="20" fill="#0A84FF"/>
<path d="M14.7387 24.2544C14.0531 26.1093 13.6222 27.4126 13.4461 28.1642C12.8928 30.5264 12.4904 31.0585 14.5528 29.9359C16.6152 28.8132 26.5997 23.2521 28.8273 22.0163C31.731 20.4052 31.7698 20.5311 28.6715 18.8206C26.3117 17.5178 16.4443 12.1017 14.5528 11.0383C12.6614 9.97482 12.8928 10.4477 13.4461 12.8099C13.6245 13.5713 14.0616 14.8862 14.7575 16.7546C15.2442 18.0614 16.3763 19.0204 17.7453 19.2855L23.5099 20.4022C23.5641 20.413 23.5992 20.4657 23.5884 20.5198C23.5805 20.5594 23.5495 20.5904 23.5099 20.5983L17.7323 21.7138C16.3589 21.979 15.2237 22.9424 14.7387 24.2544Z" fill="white"/>
</svg>
  • A chat screen breaks

Pre-Bug State

no

To Reproduce

Paste svg content to composer

Expected results

SVG and all other html block code keep it as normal text.

Context

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS]
  • Browser: [e.g. chrome, safari]
  • App Version: [e.g. 22]
  • Server: [e.g. production, example.com]
  • Account information:
  • Others

Screenshots or Video

No response

Logs

No response

Additional information

  • Frequency
  • Others
@hoangdat hoangdat added bug Something isn't working QA::Critical labels Nov 22, 2024
@hoangdat
Copy link
Member Author

Cc @shepilov

@nqhhdev nqhhdev self-assigned this Nov 26, 2024
@hoangdat hoangdat changed the title [BUG] Quick description of the bug [BUG] HTML rendering make message bubble break Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working QA::Critical
Projects
None yet
Development

No branches or pull requests

2 participants