Commit c8f1963
authored
fix(canvas): decode unicode escapes in freeform sandbox JSX text
Generated canvases sometimes contain \uXXXX escapes in JSX text and
attribute strings, which JSX renders verbatim. Decode them in a Babel
pre-pass inside the sandbox so both new and already-saved canvases
render the intended glyphs. Escapes in real JS string literals are
left untouched.
Generated-By: PostHog Code
Task-Id: 20fa55b3-faa2-41b2-91a4-a6bab80ec1741 parent cab5b24 commit c8f1963
1 file changed
Lines changed: 35 additions & 0 deletions
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
272 | 306 | | |
273 | 307 | | |
274 | 308 | | |
| |||
282 | 316 | | |
283 | 317 | | |
284 | 318 | | |
| 319 | + | |
285 | 320 | | |
286 | 321 | | |
287 | 322 | | |
| |||
0 commit comments