ended3월 25일· 1 sources
Coming Back to Kotlin: Building a Real App with KMP Part 3 — From Raw HTML to Native Content
Kotlin 재입문: KMP로 실제 앱 만들기 3편 — 원시 HTML을 네이티브 콘텐츠로 변환하기
Why it matters
This article covers building a custom HTML parser for a KMP magazine app that converts raw WordPress HTML into typed ContentPart models renderable by Compose. It uses a sealed interface to represent content blocks (text, headings, images, embeds, etc.) and a strategy pattern with BlockHandler interfaces to route each HTML block to the appropriate handler. The post also notes KMP-specific limitations such as Regex not supporting DOT_MATCHES_ALL.
1
Sources
+0
24h
—
Growth
172d
Active
Kotlin MultiplatformWordPress HTMLComposeContentPartsealed interfaceBlockHandler