Your code is not 100% correct as it allows bits not to be converted when the input bytes length is not divisible by 3.
If you want to use base64 without the special character "=", use: $remove($encode(text,m),=)
This snippet decodes the html entities hexadecimal, decimal and named (& #xHHHH; & #DDDDD; &NAME;). Does not remove html tags.
This snippet preserves the control codes (bold, italic, underline, reverse, color and plain) of the text wrapped, something the $wrap does not do. Its use is identical to the identifier $wrap.