Skip to content

decode()

Functionality

Returns a copy of current string by HTML decoding.

Syntax

[[coffeeshop.address.decode()]]

How does it work?

The decode() function returns the decoded string of current string in the str datatype.

if the value does not exist or null, it will return an empty string.

this function is only supported with the str datatype.

Example

coffeeshop(base class) language properties

TypeNameValue
strnamesample coffeeshop
straddress<ul k-repeat="[[item in coffeeshop.products]]">

source

1
2
3
4
<div>
    <!-- for str datatyp it will show '<span>b/11, sample coffee shop</span>' -->
    [[coffeeshop.address.decode()]]
</div>

output

1
2
3
<div>
    <span>b/11, sample coffee shop</span>
</div>