toHtml

@NonNull
open fun toHtml(@NonNull text: @NonNull Spanned, options: Int): @NonNull String

Invokes toHtml on API 24 or newer, otherwise options are ignored and toHtml is used.