Smartsite Documentatie
>
SXML
>
Examples
>
Viper Examples
>
String Class
> String SXMLEncode Example
String SXMLEncode Example
The following example performs an sxml encoding on an input string. The string.sxmlencode and sxml.encode vipers produce exactly the same results.
Smartsite SXML | Copy Code |
---|---|
{string.sxmlencode('<{foo}>')} {sxml.encode('<{foo}>')} |
Example Result | Copy Code |
---|---|
&lt;{foo}> &lt;{foo}> |
- Macro
- Macro Parameters
- Macro Parameter Properties
- Vipers
- SXML Data Types
-
Examples
- Macro Examples
-
Viper Examples
- Buffer Class
- Channel Class
- Char Class
- Cms Class
- ContentType Class
- Convert Class
- Database Class
- DataTable Class
- DateTime Class
- Debug Class
- DigiD Class
- Env Class
- FileSystem Class
- For Class
- General Viper Examples
- HTML Class
- Image class
- ItemData Class
- Json Class
- License Class
- Locale Class
- Logging Class
- Math Class
- Personalization Class
- Placeholder Class
- RenderTemplate Class
- Request Class
- Scf class
- Security Class
- Site Class
- Smi Class
- SmiData Class
- Spice Class
- Sql Class
-
String Class
- String AppendIfMissing and AppendIfMissingAny Example
- String BBDecode Example
- String Capitalize Example
- String Casing Vipers Example
- String Concat Example
- String Contains Example
- String Contains Example
- String DecodeCharEntities Example
- String Enclose Example
- String EncodeAmpersand and DecodeAmpersand Example
- String EncodeQuotes and EncodeAttribute Examples
- String EndsWith Example
- String Equals Example
- String Format Example
- String FormatSize Automatic Example
- String FormatSize UnitSize Example
- String HtmlDecode Example
- String HtmlEncode Example
- String IfEmpty Example
- String Indent Example
- String IndexOf Example
- String IsEmpty Example
- String IsMatch Example
- String IsNumeric Example
- String LastIndexOf Example
- String Length Example
- String Literal Example
- String NormalizeLineEndings
- String NormalizeWhitespace Example
- String Pad Example
- String Quote Example
- String RemoveTags Example
- String RemoveWhitespace Example
- String Repeat Example
- String Replace Example
- String Replace with Regular Expressions Example
- String Split Example
- String StartsWith Example
- String Substring Example
- String SXMLDecode Example
- String ToHex Example
- String ToLower Example
- String ToMD5 Example
- String ToTitleCase Example
- String ToUpper Example
- String Trim Characters Example
- String Trim Example
- String TrimLeftRight Example
- String Truncate Example
- String UrlDecode Example
- String UrlEncode Example
- String XmlDecode Example
- String XmlEncode and XmlDecode Advanced Example
- String XmlEncode Example
- SXML Class
- Sys Class
- This
- Translation Class
- Url Class
- User Class
- Viper Named Parameters
- XhtmlPage Class
- Macro Shared Parameter Examples
- Razor Examples
- Tips & Tricks