Skip to content

Instantly share code, notes, and snippets.

@proofek
Created December 4, 2013 20:37
Show Gist options
  • Save proofek/7795079 to your computer and use it in GitHub Desktop.
Save proofek/7795079 to your computer and use it in GitHub Desktop.
Configure HTML Purifier Settings in SugarCRM (src/include/clean.php)
<?php
class SugarCleaner
{
(...)
function __construct()
{
global $sugar_config;
$config = HTMLPurifier_Config::createDefault();
(...)
// Non upgrade safe change
// Allow <a> tag to open links in new window (target="_blank")
$config->set('Attr.AllowedFrameTargets', array('_blank' => true));
}
(...)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment