Tim Van Wassenhove home

Very often i need to encode/decode the contents of my Clipboard so i decided to write a little tray application to help me

screenshot of htmlclipboard tray application

With the aid of Clipboard and HttpUtility this is quite easy to implement

private void toolStripMenuItemDecode_Click(object sender, EventArgs e)
{
	string original = Clipboard.GetText();
	string decodedHtml = HttpUtility.HtmlDecode(original);
	Clipboard.SetText(decodedHtml);
}

private void toolStripMenuItemEncode_Click(object sender, EventArgs e)
{
	string original = Clipboard.GetText();
	string encodedHtml = HttpUtility.HtmlEncode(original);
	Clipboard.SetText(encodedHtml);
}

Anyway, feel free to download HtmlClipboard.zip.