Is there an easy way to remove the data-preserver-spaces span from blocks?

Question

I converted a page from Classic to Guttenberg and now all the blocks have this span in them:

<p><span data-preserver-spaces="true">...</span></p>

This means that all the blocks appear on a grey background, which makes it harder to edit, see links, etc.

I know how to edit the HTML and remove the <span> tag like so:

<p>...</p>

but over 100 blocks, that’s definitely tedious. Is there a way to do that automatically? (like a “clear all formatting” like I’ve see in other editors?)

Here is an example of the effect I’m talking about:

enter image description here

Note that it also happens when text is Italic or Bold or some other such format (which I think is also annoying).

0
, Alexis Wilke 1 year 2020-07-18T21:10:38-05:00 0 Answers 68 views 0

Leave an answer

Browse
Browse