Skip to content

PrismUtil.encode method

PrismUtil › encode

Unofficial

Encodes tokens by replacing special HTML characters.

Signature:

encode(tokens: PrismTokenStream): PrismTokenStream

Parameters:

ParameterTypeDescription
tokensPrismTokenStreamThe token stream to encode.

Returns: PrismTokenStreamThe encoded token stream.