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.

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

  • ToddTodd Vanilla Staff
    Answer ✓
    You tried step 2 I suggested? Really?

Answers

  • ToddTodd 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.
  • 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?
  • ToddTodd Vanilla Staff
    Answer ✓
    You tried step 2 I suggested? Really?
  • edited July 2011
    solved it by doing

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

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