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: PrismTokenStream — The encoded token stream.