encodeTag

Encodes the provided tag for use in URLs.

Example usage:

val encoded = encodeTag("#1 2   3 ab  C")
// encoded will be: "%23123ABC"

Return

The encoded tag with the "%23" prefix.

Parameters

tag

The tag string to be encoded.