Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
htmlpurifier
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
htmlpurifier
Merge requests
!6
Resolve
#3375949
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Closed
Resolve
#3375949
issue/htmlpurifier-3375949:3375949-
into
7.x-2.x
Overview
1
Commits
50
Pipelines
0
Changes
16
Closed
Resolve #3375949
Praveen rani
requested to merge
issue/htmlpurifier-3375949:3375949-
into
7.x-2.x
Apr 30, 2024
Overview
1
Commits
50
Pipelines
0
Changes
16
Closes
#3375949
0
0
Merge request reports
Compare
7.x-2.x
7.x-2.x (base)
and
latest version
latest version
17581603
50 commits,
Apr 30, 2024
16 files
+
290
−
1313
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
16
config/sample.php deleted
100644 → 0
+
0
−
50
View file @ 2e24ab31
<?php
/**
* @file
* This file is a sample advanced PHP configuration file for the HTML Purifier
* filter module. In reality, this file would be named N.php, where N is the
* integer identifying the filter this is configuring. The configure page
* for HTML Purifier (advanced) will tell you what file to copy this to.
*
* See this URI:
*
* http://htmlpurifier.org/live/configdoc/plain.html
*
* For full information about permitted directives. The most interesting ones
* for custom configuration are ones with the 'mixed' type, as they cannot
* be configured using the webform.
*
* @note
* A number of directives have been predefined for you in order to better
* work with Drupal. You can see what these defaults in the
* _htmlpurifier_get_config() function in htmlpurifier.module.php.
*
* @warning
* Please be mindful of the version of HTML Purifier you have installed!
* All of the docs linked to are for the latest version of HTML Purifier;
* your installation may or may not be up-to-date.
*/
/**
* Accepts an HTMLPurifier_Config configuration object and configures it.
*
* @param $config
* Instance of HTMLPurifier_Config to modify. See
* http://htmlpurifier.org/doxygen/html/classHTMLPurifier__Config.html
* for a full API.
*
* @note
* No return value is needed, as PHP objects are passed by reference.
*/
function
htmlpurifier_config_N
(
$config
)
{
// Set your configuration here:
$config
->
set
(
'Core'
,
'Lexer'
,
'DirectLex'
);
// $config->set('Namespace', 'Directive', $value);
// Advanced users:
// $def = $config->getDefinition('HTML');
// For more information about this, see:
// http://htmlpurifier.org/docs/enduser-customize.html
}
Loading