Strip attributes or add paragraphs
-
My primary purpose of using the plugin is to replicate the default behavior of the_excerpt(), but forcing whole sentences.
If I strip all tags, paragraphs are combined (which isn’t too bad), but the excerpt is not wrapped with a p tag which alters the spacing (note a wrapping p tag is added with the default the_excerpt() ). I guess this could be resolved with an extra filter.
If I strip all tags excerpt paragraphs, this is also OK and probably more ideal as it, except for the fact that any inline styles/classes come through and can break the formatting (like alignment or font sizes).
Can styles/classes be stripped?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Strip attributes or add paragraphs’ is closed to new replies.