# StringKt

Added in 1.1.0

*** ** * ** ***


```
public final class StringKt
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/text/StringKt#(kotlin.String).htmlEncode()(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html receiver)` Html-encode the string. |

## Public methods

### htmlEncode

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/text/String.kt+function:htmlEncode) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final @NonNull String htmlEncode(@NonNull String receiver)
```

Html-encode the string.

| See also |
|---|---|
| `https://developer.android.com/reference/android/text/TextUtils.html#htmlEncode(java.lang.String)` |   |