PressForward / pressforward

PressForward is a free plugin that provides an editorial workflow for content aggregation and curation within the WordPress dashboard. It is designed for bloggers and editorial teams who wish to collect, discuss, and share content from a variety of sources on the open web.
GNU Affero General Public License v3.0
120 stars 22 forks source link

Strip structural markup from source content #1177

Closed boonebgorges closed 8 months ago

boonebgorges commented 11 months ago

As reported at https://wordpress.org/support/topic/a-few-minor-suggestions/, structural tags like span and div in the source content can potentially cause formatting issues. We could strip them, but we should first research whether stripping would reduce legibility in certain cases (especially where these elements are used in place of more semantic elements).

boonebgorges commented 11 months ago

This might be mitigated to some extend by the move to the Block Editor for Nominate This, since the in-client transformation to blocks may strip some of the offending elements. #1124

boonebgorges commented 8 months ago

I ran some tests on content from a number of different types of sites (newspapers, blogs, etc) that contain this kind of "junk" markup. In all cases, I found that the Block Editor Nominate This was very good at stripping out the offending markup. As such, I think that no further action is required here.