library / org.akop.kotx.ext.basic / kotlin.String / htmlEncode

htmlEncode

fun String.htmlEncode(): String

HTML-encodes a string by calling TextUtils.htmlEncode.

Return
HTML-encoded version of the string (UTF-8 by default).