( styles: Record<string, string | number | null>, isJsx: boolean, )
| 34 | .map(([key, value]) => formatWithJSX(key, isJsx, value)); |
| 35 | |
| 36 | export const formatMultipleJSX = ( |
| 37 | styles: Record<string, string | number | null>, |
| 38 | isJsx: boolean, |
| 39 | ): string => |
| 40 | Object.entries(styles) |
| 41 | .filter(([key, value]) => value) |
| 42 | .map(([key, value]) => formatWithJSX(key, isJsx, value!)) |
| 43 | .join(isJsx ? ", " : "; "); |
| 44 | |
| 45 | export const escapeJSXText = (text: string): string => { |
| 46 | return encode(text, { level: "html5" }) |
no test coverage detected