Embed YouTube video in Safe HTML

Discussion in 'BukkitDev Information and Feedback' started by lol768, Sep 16, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    lol768

    After getting tired of WikiCreole, I decided to try safe HTML as a markup type for my BukkitDev page. Unfortunately it seems very restrictive:
    • No inline css support or use of style attribute
    • There's no way for me to embed youtube videos
    Even if an iframe/object is a security issue, why not add your own "tag":
    HTML:
    <youtube data-videoID = "123456" />
    I can understand the need for security, but sites like eBay and SourceForge allow users to input HTML without this much restriction.
     
  2. Offline

    Jacek

    Adding a tag makes it not HTML and if you are going to do that you may as well just use one of the markup languages which does have the YouTube tag.
     
  3. Offline

    lol768

    The only reason I suggested the tag is because you're unwilling to add iframe/object support.

    Changing to WikiCreole/BBCode would require me to rewrite the whole project description. Plus, there's functionality in safe HTML that isn't present in WikiCreole.
     
  4. Offline

    chaseoes

    I found quite some time ago that the YouTube tag works with any of the languages, just stick it in.
     
  5. Offline

    lol768

    I wish I'd known that before converting everything to WikiCreole :)
     
  6. Offline

    chaseoes

    However it's impossible to get tables with SafeHTML. :(
    That's what made me end up changing.
     
  7. Offline

    lol768

    You sure? The wiki knowledge base base lists table, tbody etc as allowed tags.
     
Thread Status:
Not open for further replies.

Share This Page