I need a special behavior in the title, so I use shortcodes there, the display is fine (I just use filters
single_post_title), however when permalink is generated,
the shortcode stays there (it just strips out the
I need to somehow change the source title before the link is generated,
since I don't want to do/recreate the permalink logic again.
Note: When I used HTML directly instead of shortcodes, the desired result is delivered :) (HTML is stripped, but its inner contents are kept). However, that is unacceptable for a regular user case.