Attempt to run the code in Kotlin Playground fails with errors (please refer to the screenshot below).
The Type Sage Builders reference doc mentioned at the bottom of the page contains a different implementation that [after minor adaptations] runs successfully in Kotlin Playground.
It seems beneficial to align HTML Builder example with with Type Safe Builders reference doc and make it executable in Kotlin Playground.
Running the HTML Builder example code in the https://play.kotlinlang.org/byExample/09_Kotlin_JS/06_HtmlBuilder page produces the expected result while displaying deprecation warnings next to several lines (please refer to the screenshot below).
Attempt to run the code in Kotlin Playground fails with errors (please refer to the screenshot below).
The Type Sage Builders reference doc mentioned at the bottom of the page contains a different implementation that [after minor adaptations] runs successfully in Kotlin Playground.
It seems beneficial to align HTML Builder example with with Type Safe Builders reference doc and make it executable in Kotlin Playground.