StringEscape


Object Hierarchy:

Object hierarchy for StringEscape

Description:

public class StringEscape : Object

String escaping utilities.

Use this class when rendering user input in formats where reserved characters must be escaped (HTML, JSON, XML).

Example:

    string html = StringEscape.escapeHtml ("<b>safe</b>");
string json = StringEscape.escapeJson ("line1\nline2");


Namespace: Vala.Lang
Package: Valacore

Content:

Static methods:

Creation methods:

Inherited Members:

All known members inherited from class GLib.Object