Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6640035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:37:33+00:00 2026-05-25T23:37:33+00:00

<?php require_once ‘/library/HTMLPurifier/HTMLPurifier.auto.php’; $config = HTMLPurifier_Config::createDefault(); $config->set(‘Filter.YouTube’, true); $purifier = new HTMLPurifier($config); ?> (^

  • 0
<?php

require_once '/library/HTMLPurifier/HTMLPurifier.auto.php';

    $config = HTMLPurifier_Config::createDefault();

    $config->set('Filter.YouTube', true);

        $purifier = new HTMLPurifier($config);
?>

(^ This is my only settings for HTMLPurifier)

It should <span class="youtube-embed">nto6EvPFO0Q</span> make this in to a Youtube embbeded video. But it’s not working. (Nothing happens simply)

But loading like this works:

<object width="425" height="350">
  <param name="movie" value="http://www.youtube.com/v/nto6EvPFO0Q />
  <param name="wmode" value="transparent" />
  <embed src="http://www.youtube.com/v/nto6EvPFO0Q"
         type="application/x-shockwave-flash"
         wmode="transparent" width="425" height="350" />
</object>

(Is this a security issue? ^)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T23:37:33+00:00Added an answer on May 25, 2026 at 11:37 pm

    Use UTF-8. All other character sets are obsolete and should never be used except in legacy applications where you have no other choice.

    Edit (after update of question):

    First, you should use this:

    <iframe class="youtube-player" type="text/html" width="640" height="385"
     src="http://www.youtube.com/embed/XXXXIDXXXX" frameborder="0"></iframe>
    

    Instead since it works on smart phones and the flash version doesn’t.

    Second, according to their documentation you need to download and include YouTube.php from http://repo.or.cz/w/htmlpurifier.git?a=blob;hb=HEAD;f=library/HTMLPurifier/Filter/YouTube.php (and when you do so update it to the new type of embed code).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

PHP PDO Singleton Class: <?php require_once('app/config.php'); // Require constants HOST, DATABASE, USER, PASSWORD /*
Please see code below: <?php require_once(initvars.php); require_once(config.php); if( !$auth->id ){ //NOT logged in header(location:
Please help me set the required database! Thank you! <?php require_once(adodb5/adodb.inc.php); $web = NewAdoConnection(mysqlt);
Sample Code: Config.php: class Config { public $serverIP = 1.1.1.10; } DB.php: require_once /home/mysite/PHP/Config.php;
I have task: <?php require_once(dirname(__FILE__).'/../../config/ProjectConfiguration.class.php'); class GroupCheckTask extends sfBaseTask { protected function configure() {
This is my code: <?php require_once '../../../jq-config.php'; // include the jqGrid Class require_once ABSPATH.php/jqGrid.php;
Now my channel.html file looks as follows: <?php require_once __DIR__ . '/ay/includes/config.inc.php'; session_set_cookie_params(7200, '/'
I have some files: core.php : require_once 'logger.php'; require_once 'smth_else.php'; $Logger = new Logger();
index.php <?php require_once('fr.php'); header('Location:'.abspath().directory()); ?> fr.php <?php require_once('functions.php'); ?> functions.php function abspath() { return
My form class: <?php require_once ('Zend\Form.php'); class Sergio_Form_registrationform extends Zend_Form { public function init(){

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.