Project

General

Profile

$strip » History » Version 7

Per Amundsen, 02/23/2023 07:41 PM

1 1 Per Amundsen
_Added in 1.8.10_
2
3 5 Per Amundsen
*$strip(text,[buercmos])*
4 1 Per Amundsen
5
Returns text with all [[Formatting_Text|control codes]] stripped out.
6
7
*Parameters*
8
9 6 Per Amundsen
table(ktable).
10
|*Parameter*|*Description*|
11
| text | The text to format. |
12 7 Per Amundsen
| [burcmo] | If specified, only strip these codes, b = bold, u = underline, r = reverse, c = colors, e = strikethrough, s = stop control codes, m/o = use global strip options from [[Options_Dialog|Options]] -> [[Messages_Options|Messages]] -> [[Messages_Options#Strip-mIRC-tags-colorsbolditalicunderline|Strip mIRC tags]]. |
13 1 Per Amundsen
14
*Example*
15
16
<pre>
17
; Strip all codes.
18
//echo -ag $strip($chr(3) $+ 3,3text)
19
20
21
; Use global option to strip codes.
22
//echo -ag $strip($chr(3) $+ 3,3text, m)
23
24
; Strip only bold and color codes
25
//echo -ag $strip($chr(2) $+ $chr(29) $+ $chr(3) $+ 3,3text,bc)
26
</pre>