Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Youtube embed

edited September 2009 in Vanilla 2.0 - 2.8
Don't want to allow HTML in posts, but would like if people could embed youtube videos.

What about an extension that allows a [youtube][/youtube] formulation in posts. In between the tags goes the youtube video id, like WO--A9EJng0. When the post goes live, the youtube embed code is automatically inserted and the video is shown in-thread.


  • MarkMark Vanilla Staff
    Definitely possible even using HtmlPurifier. Just disallow all html tags and enable the youtube HtmlPurifier filter. Check out our Format::Html() method to see how it's done.
Sign In or Register to comment.