example shortcode: see if we can use a regex
The above basically extracts the class, removes bd-placeholder-img
and bd-placeholder-img-lg
.
I wonder if we can use findRE
along with replaceRE
to achieve the same thing.
Not a huge deal, it just feels like a more elegant solution.
Similarly we could try doing the same for:
This just extracts the <svg></svg>
.