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.
Options

Remove html images and youtube embed capabilities?

Is there a way to make the img src html tag not work and just print out raw text? And is it possible to do the same thing for a youtube embedded video?
Tagged:

Best Answer

  • Options
    ToddTodd Chief Product Officer Vanilla Staff
    Answer ✓
    You tried step 2 I suggested? Really?

Answers

  • Options
    ToddTodd Chief Product Officer Vanilla Staff
    You'd have to do the following:

    1. Set the following config settings:
    $Configuration['Garden']['Format']['YouTube'] = FALSE;
    $Configuration['Garden']['Format']['Vimeo'] = FALSE;
    2. You're going to have to fiddle with the Htmlawed plugin to deny image tags. It supports this, but you'll have to look through their documentation.
  • Options
    I tried this and it did not work. I can still embed youtube videos. I also tried this:

    $Configuration['Garden']['InputFormatter'] = 'Raw';

    To remove all html tags, but that did not work either. Any suggestions?
  • Options
    ToddTodd Chief Product Officer Vanilla Staff
    Answer ✓
    You tried step 2 I suggested? Really?
  • Options
    edited July 2011
    solved it by doing

    $Configuration['Garden']['InputFormatter'] = "Text";

    and the other steps above
Sign In or Register to comment.