up: ZUT     index Zimbu documentation

CLASS ZUT.Attributes EXTENDS ZUT.Base @public

summary

     

A string that is properly formatted HTML attributes.

This is used to ensure proper HTML escaping.

$add(text) ZUT.Base @public  Add text to the Attributes, it will be escaped.
$add(attributes) ZUT.Attributes @public  Add attributes to this Attributes.
 
fromSafeString(safeContent) ZUT.Attributes @public  Create a ZUT.Attributes object from a string that contains safe, already escaped HTML element attributes.
 
Inherited from ZUT.Base:
NEW() @public 
$addUNESCAPED(safeContent) ZUT.Base @public  Add safeContent to the section, it will not be escaped.
$add(number) ZUT.Base @public  Add number to the item as a string.
$add(number) ZUT.Base @public  Add number to the item as a string.
$ToString() string @public  Return the concatenated result.
 

members (alphabetically)

     

FUNC $add(string text) ZUT.Base @public

     

Add text to the Attributes, it will be escaped.

FUNC $add(ZUT.Attributes attributes) ZUT.Attributes @public

     

Add attributes to this Attributes.

shared (alphabetically)

     

FUNC fromSafeString(string safeContent) ZUT.Attributes @public

     

Create a ZUT.Attributes object from a string that contains safe, already escaped HTML element attributes.

USE WITH CARE: text that is not properly escaped can create an XSS vulnerability!

license

      Copyright 2014 Bram Moolenaar All Rights Reserved.

      Licensed under the Apache License, Version 2.0. See the LICENSE file or obtain a copy at: http://www.apache.org/licenses/LICENSE-2.0