Are there any restrictions for using HTML tags in “html” field?

折月煮酒 提交于 2020-01-10 14:10:20

问题


According to https://developers.google.com/glass/v1/reference/timeline#html one can use HTML.

Are there any restrictions for using HTML tags in "html" field?


回答1:


We will update the documentation regarding this shortly but in the meantime, here are the restrictions:

  • Allowed HTML elements: Use these elements in your timeline cards.
    • Headers: h1, h2, h3, h4, h5, h6
    • Images: img
    • Lists: li, ol, ul
    • HTML5 semantic: article, aside, details, figure, figcaption, footer, header, nav, section, summary, time
    • Structural: blockquote, br, div, hr, p, span
    • Style: b, big, center, em, i, u, s, small, strike, strong, style, sub, sup
    • Tables: table, tbody, td, tfoot, th, thead, tr
  • Blocked HTML elements: These elements, and their contents, are removed from html payloads.
    • Document headers: head, title
    • Embeds: audio, embed, object, source, video
    • Frames: frame, frameset
    • Scripting: applet, script
  • Other elements: Any elements not listed above are removed, but their contents are preserved.


来源:https://stackoverflow.com/questions/16045816/are-there-any-restrictions-for-using-html-tags-in-html-field

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!