I’m creating a blog where the home page displays previews of posts formatted with rich text (created with the rich text editor). I’d like to strip the rich text formatting for the previews… any way to do that?
Not right now, no.
@emmanuel Any update on this? Would be a great feature.
No, no update.
Could run it through a regular expression
\[.+?\] and empty replacement to strip out everything in
\] means a literal brace, not an expression.
. means any character.
+ means one or more "any character"s.
? means limit the “one or more” to get the minimal number of characters to fit the expression, so it doesn’t match plain text between rich text.
This demo is handy to fiddle with the regex to get it right for what you want: