up: ZUT     index Zimbu documentation

CLASS ZUT.Css EXTENDS ZUT.Base @public

summary

     

A string that is properly formatted CSS.

This is used to ensure proper style sheet escaping.

$add(text) ZUT.Base @public  Add text to the Css, it will be CSS-escaped.
$add(css) ZUT.Css @public  Add css to the Css, it will be added as-is.
 
fromSafeString(safeContent) ZUT.Css @public  Create a ZUT.Css object from a string that contains safe, already escaped Css.
 
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 Css, it will be CSS-escaped.

FUNC $add(ZUT.Css css) ZUT.Css @public

     

Add css to the Css, it will be added as-is.

shared (alphabetically)

     

FUNC fromSafeString(string safeContent) ZUT.Css @public

     

Create a ZUT.Css object from a string that contains safe, already escaped Css.

USE WITH CARE: Css 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