24/7 Support: 800.608.6482

encodeattribute

MvDo Function, MVT, Miva 9+, Engine v5.22+

Tag / Description

encodeattribute( attribute )

<mvt:assign name="g.return_value" value="encodeattribute( attribute )" />

Returns a copy of string (which is usually a URI or part of an URI ) in URI-encoded format. Special characters such as space, tilde (~), and the plus sign are converted to hexadecimal %nn format. This function is the opposite of decodeattribute.

Parameters

Return Values

Examples

Looking for Developer Docs?

We have a whole section for that, including: Developer Training Series, Template Language docs, Module Development tutorials and much, much more.

Head to the Developer Section

Copyright © 1997 – 2026 Miva®, Miva Merchant®, MivaPay Vault®, Camp Miva®, Miva Connect®, Vexture℠, Miva, Inc. All Rights Reserved.