Replaces reserved HTML characters (such as "<" and "&") by character-entity equivalents (like "&lt;" or "&amp;").

Code (C#)

// HTML-encode the text from the input editor and write it to
// the output editor
Output.Text = HttpUtility.HtmlEncode(Input.Text); 
Input Type: Plain Text, Output Type: Plain Text

Download Project File

File: HTML-encode_a_text.dvp (1.95 KB)

To open this file, DataVoila must be installed on your computer. If this is not yet the case, please click here to download the free demo version.