String line to remove IRC tags from.
The passed line but with tags removed.
{
immutable line = "hello<b>hello<b>hello";
immutable expanded = line.stripIRCTags();
immutable expected = "hellohellohello";
assert((expanded == expected), expanded);
}
{
immutable line = "hello<99,99<b>hiho</>";
immutable expanded = line.stripIRCTags();
immutable expected = "hello<99,99hiho";
assert((expanded == expected), expanded);
}
{
immutable line = "hello<1>hellohello";
immutable expanded = line.stripIRCTags();
immutable expected = "hellohellohello";
assert((expanded == expected), expanded);
}
{
immutable line = `hello\<h>hello<h>hello<h>hello`;
immutable expanded = line.stripIRCTags();
immutable expected = "hello<h>hellohellohello";
assert((expanded == expected), expanded);
}
Removes <tags> in an outgoing IRC string where the tags correlate to formatting using IRCControlCharacters.