Commit 40c80af
authored
fix(iOS): body tag handling crash (#480)
# Summary
Fixes
#479.
We were handling htmls with `body` tags only if we had no `html` tags or
didn't use `htmlNormalizer`. Now it is always being handled after either
of these steps, which fixes the crash.
Also improved the way it handles newlines around `body` tags, because it
previously just always assumed they are there.
## Test Plan
Try pasting the following HTML via example app's `insert html` and see
that it properly works with and without `useHtmlNormalizer`:
```html
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<p class="p1">Some text</p>
</body>
</html>
```
## Screenshots / Videos
-
## Compatibility
| OS | Implemented |
| ------- | :---------: |
| iOS | ✅ |
| Android | ❌ |1 parent acc0fe2 commit 40c80af
1 file changed
Lines changed: 18 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
787 | 793 | | |
788 | 794 | | |
789 | 795 | | |
| |||
0 commit comments