How to remove formatting styles from string?
Author: loot-midgetCreated Sep 23, 2026Updated Sep 23, 2026
Hi,
I would like to search custom substring in items' text but now tags/color names are matching too.
Is there a way to cleanup tags/styles from passed string?
Thank you.
Update: the goal is filtering menu items which could be styled: https://github.com/petereon/beaupy/issues/201
Source: Textualize/rich