20.3. Style Information in Derived Property Strings

In derived properties in your medini analyze project, you can add formatting information such as background color or icons. However, M2Doc does not support this type of formatting, and instead prints out the icon/color commands as a prefix to the text, for example, [@#FF00AA].

To strip the formatting when accessing derived properties in an M2Doc report, use one of the following services in place of your string (stringName).

  • stringName.stripStyles()

    Strips all style information

  • stringName.stripIcon()

    Strips only emoticons

  • stringName.stripColors()

    Strips only colors