cancel
Showing results for 
Search instead for 
Did you mean: 

"Invalid HTML" - but accepted in editor!

Andrew Neil
Evangelist III

See: 

https://community.st.com/t5/other-hardware/equation-error-lmx35-lm135-lm235-lm335-temperature-sensor/m-p/722841/highlight/true#M28592

The post editor allows me to create multi-level subscripts, and it displays fine in the editor:

AndrewNeil_0-1727075702558.png

But, when I post, I get the "Invalid HTML" error, and the post loses all the subscripting:

AndrewNeil_1-1727075772617.png

Is this intended behaviour?

To be able to subscript would be useful.

 

PS:

So the HTML is not invalid; it may be unsupported - but it's not invalid.

10 REPLIES 10
Laurids_PETERSEN
Community manager
Community manager

Hi @Andrew Neil,

Thanks for your feedback.
At the moment the subscript <sub> and superscript <sup> tags are not enabled by default. It's not possible for us to add it manually, but I will reach out to our provider to understand if they can add them.

Best regards,
Laurids

Then the HTML editor really shouldn't let you insert them - should it?

There's also the long-standing issue that the messages says, "Correct the highlighted errors and try again" - but there is no highlighting, so we have no idea what to correct!

 

See: https://community.st.com/t5/feedback-forum/what-invalid-html/td-p/569839

 

Hi @Andrew Neil,
I will ask about the scope of having a more "real-time" HTML editor. In the mean time, I suggest including the tags that are allowed on the community inside our guideline How to overcome HTML error when publishing pasted content into a post - let me know what you think.


Regarding the "Correct the highlighted errors and try again" message, I believe this is only applied when obligatory fields such as labels are not filled, and these are highlighted. HTML is edited automatically. Let me know if you have seen this elsewhere. 

Best regards,
Laurids

 


@Laurids_PETERSEN wrote:

Hi @Andrew Neil,
I will ask about the scope of having a more "real-time" HTML editor.


I don't think it necessarily needs to be real-time - just when you close it to put the HTML into the post it should then flag up HTML errors

 


@Laurids_PETERSEN wrote:

Regarding the "Correct the highlighted errors and try again" message, I believe this is only applied when obligatory fields such as labels are not filled


No, that's not my experience.

That's the error I got for the <sub> tags, and it's the same in the linked thread.

 

This is what happens for no labels:

AndrewNeil_0-1727092366175.png

There is nothing there about invalid HTML.

And this is what happens for invalid HTML

AndrewNeil_1-1727092505679.png

In the editor, that gives:

AndrewNeil_2-1727092544973.png

But posting gives:

AndrewNeil_3-1727092613803.png

 

 

Thanks for the screenshots, it's clear now. 

FYI: We are prioritizing pushing some small changes and improvements soon, this will be picked up afterwards. I'll get back to you if more information is needed.

Thanks again,
Laurids  

Yes, this is definitely at the non-urgent end of the spectrum!

Hi @Andrew Neil

A fix should be deployed for this now, but I'd like to double check if you're able to do it. 

Would you mind running this through the HTML editor and post it as a reply?

<sub>
test
</sub>

<sup>
test
</sup>

Still fails.

 

In the Editor:

AndrewNeil_0-1730726189080.png

 

On posting:

AndrewNeil_1-1730726218453.png