4.1.7 formatting bug – major

Solved6.08K viewsCorebug core features HTML
1

Rahul,

There is a fairly major bug in 4.1.7 that causes HTML tags to be stripped from posts. An example of this is that no matter what formatting you place in the editor of a page, post, or anything else, it is stripped on save or preview. This even affects the text only version of the editor. I expect that this has something to do with sanitising input, but it’s going a bit too far in this case.

I disabled all plugins on my site, and everything returned to normal. I then activated them one by one, and all was well until I activated AnsPress where the problem reappeared. I activated all plugins, and the issue persisted. I disabled AnsPress and the problem went away. As an indication, the below is that’s taking place.

With AnsPress disabled

With AnsPress enabled

Again, I think that this is due to HTML tags being stripped for sanitisation – I understand why, but this really needs to be looked at as it impacts the entire site.

Thanks

Question is closed for new answers.
selected answer
2

Thanks for reporting. I just fixed the issue.

selected as best answer
0

Confirmed resolved with latest commit. What was the issue ?

commented on answer

I had add some custom valid elements to tinyMce and my hook was stripping all other valid elements. Thanks for reporting.

Ouch ! Glad we spotted and resolved !

1

Yes. Text styles do not work.

1

Hello,

Thanks for reporting. I am testing it right now.