之前因為windows live space關閉,依建議轉到WordPress.com試用了一下,卻發現有某些功能被限制住了。
不同於wordpress.org(黑色W),由wordpress.com(藍色W)提供的免費版本部落格,因為安全性的考量,對程式碼做了限制。
資料來源:http://en.support.wordpress.com/code/
HTML Tags
WordPress.com allows the following HTML code in your posts, pages, and widgets:
address, a, abbr, acronym, area, b, big, blockquote, br, caption, cite, class, code, col, del, dd, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, img, ins, kbd, li, map, ol, p, pre, q, s, span, strike, strong, sub, sup, table, tbody, td, tfoot, tr, tt, ul, var
Check out W3 Schools for more information about what each of these HTML codes are used for.
If you are familiar with HTML, you’ll notice that codes such as embed, frame, iframe, form, input, object, textarea
and others are missing from the above list. Those codes are not allowed on WordPress.com for security reasons.
Javascript
Users are not allowed to post JavaScript on WordPress.com blogs. JavaScript can be used for malicious purposes. As an example, JavaScript has taken down sites such as MySpace.com and LiveJournal offline in the past. The security of all the blogs is a top priority and until we can guarantee scripting languages will not be harmful they will not be permitted.
JavaScript from trusted partners, such as YouTube and Google Video, is converted into a WordPress shortcode when a post is saved.
還有一些wordpress.com與wordpress.org的比較,也請參考:http://en.support.wordpress.com/com-vs-org/
沒有留言:
張貼留言