Created
December 4, 2013 20:37
-
-
Save proofek/7795079 to your computer and use it in GitHub Desktop.
Configure HTML Purifier Settings in SugarCRM (src/include/clean.php)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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