Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Replace < and > in XML with less than/greater than symbols

Description
This macro will replace the less than/greater than HTML codes in the clipboard text with the less than/greater than symbols.
Language
C#.net
Minimum Version
Created By
Goran Genter
Contributors
-
Date Created
Oct 25, 2023
Date Last Modified
Oct 25, 2023

Macro Code

using System;
using System.Text;
using System.Collections.Generic;

// The 'text' parameter will contain the text from the:
//   - Current Clipboard when run by HotKey
//   - History Item when run from the History Menu
// The returned string will be:
//   - Placed directly on the Clipboard
//   - Ignored by ClipboardFusion if it is 'null'
public static class ClipboardFusionHelper
{
	public static string ProcessText(string text)
	{
        text = text.Replace("<", "<").Replace(">", ">");
		
		return text;
	}
}