Unexpected HTML Changes
-
I did a scheduled content update as a test and noticed that when the updated was published, much of my custom HTML was missing or otherwise “cleaned.” I expected that my pasted HTML would have been published verbatim. Is there anyway to schedule content updates so that the HTML does not get sanitized or otherwise changed from what I entered?
Some examples:
- semi-colons that end inline-styles are removed and spaces between inline style definitions are removed:
style="margin-top: 10px;margin-bottom: 5px"
- srcset attributes are removed:
srcset="//www.domain.com/media/image.jpg 435w" sizes="435px"
- some inline style tags (with the white-space attribute) are removed:
style="white-space: nowrap;"
- HTML comment tags re-render the less-than and greater-than signs into HTML-encoded character, which break the HTML comment:
<!--
is converted to< ;!--
(added a space to prevent this post from converting it) - invalid HTML is removed (this is probably ok, but I’d rather know about it being invalid so it can be remedied, rather than just have it be removed):
style="margin-botom: 10px;"
I’m sure there are plenty of other examples of this happening, that did not occur in my test.
- semi-colons that end inline-styles are removed and spaces between inline style definitions are removed:
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Unexpected HTML Changes’ is closed to new replies.