9

TIL - Fixing the invalid HTML error when posting i... - SAP Community

 7 months ago
source link: https://community.sap.com/t5/technology-blogs-by-sap/til-fixing-the-invalid-html-error-when-posting-in-khoros/ba-p/13600180
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

ajmaradiaga

Developer Advocate

59 seconds ago

Today I was trying to send a message via the platform to the people who have RSVPd for a couple of SAP CodeJams that I will be running in Zagreb, Croatia (Integration Suitebtp CLI) next week and I was getting the infamous invalid HTML error when drafting the message. Sometimes the platform auto-magically fixes the issue but in this case, I was still getting the message. When inspecting the HTML, I noticed an additional tag that I’d not seen before in an HTML a tag. So, whenever you face this issue, check for any odd attributes that you might find in your HTML.

sap-community-invalid-html.png
  • Problem: I originally copied the message from Outlook and the hyperlinks (a tags) includes the additional attribute - data-outlook-id.
  • Solution: This attribute data-outlook-id was causing the issue. Remove it from the HTML and it works fine.

This TIL was first published at ajmaradiaga.com.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK