Project

General

Profile

$strip » History » Revision 6

Revision 5 (Per Amundsen, 12/22/2021 06:06 PM) → Revision 6/7 (Per Amundsen, 02/23/2023 07:40 PM)

_Added in 1.8.10_ 

 *$strip(text,[buercmos])* 

 Returns text with all [[Formatting_Text|control codes]] stripped out. 

 *Parameters* 

 table(ktable). 
 |*Parameter*|*Description*| 
 | text | - The text to format. | 

 [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]]. 

 *Example* 

 <pre> 
 ; Strip all codes. 
 //echo -ag $strip($chr(3) $+ 3,3text) 


 ; Use global option to strip codes. 
 //echo -ag $strip($chr(3) $+ 3,3text, m) 

 ; Strip only bold and color codes 
 //echo -ag $strip($chr(2) $+ $chr(29) $+ $chr(3) $+ 3,3text,bc) 
 </pre>