Jump to content

posts table inserting inline styles


OblivionNW

Recommended Posts

Posted

Can anyone please explain why does the posts table inserts inline styles straight into the table? It makes it very difficult to use the rest api to fetch posts, as well as display them on my external site. I have to go through and manually filter out the inline styles with regex.

Posted

When you format content in a WYSIWYG editor, it typically applies inline styles. This is normal and expected.

If you want raw text content without styles, you'll need to use something like strip_tags() in PHP after fetching the post.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...