# R34322 - /branches/1.8/phpgwapi/inc/class.html.inc.php

**URL:** <https://help.egroupware.org/t/r34322-branches-1-8-phpgwapi-inc-class-html-inc-php/46387>\
**Category:** eGW-svn\
**Created:** [March 22, 2011, 1:16pm UTC](https://help.egroupware.org/t/r34322-branches-1-8-phpgwapi-inc-class-html-inc-php/46387 "2011-03-22T13:16:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leithoff](https://help.egroupware.org/letter_avatar_proxy/v4/letter/l/58956e/32.png) [@leithoff](https://help.egroupware.org/u/leithoff)\
**Post date:** [March 22, 2011, 1:16pm UTC](https://help.egroupware.org/t/r34322-branches-1-8-phpgwapi-inc-class-html-inc-php/46387/1 "2011-03-22T13:16:19Z")

</div>

Author: leithoff  
New Revision: 34322

URL: [http://www.egroupware.org/viewvc/egroupware?rev=34322&view=rev](http://www.egroupware.org/viewvc/egroupware?rev=34322&view=rev)  
Log:  
allow targets for hrefs, as requested with tracker ticket #2894 - no target \_blank allowed

Modified:  
branches/1.8/phpgwapi/inc/class.html.inc.php

# Modified: branches/1.8/phpgwapi/inc/class.html.inc.php URL: [http://www.egroupware.org/viewvc/egroupware/branches/1.8/phpgwapi/inc/class.html.inc.php?rev=34322&r1=34321&r2=34322&view=diff](http://www.egroupware.org/viewvc/egroupware/branches/1.8/phpgwapi/inc/class.html.inc.php?rev=34322&r1=34321&r2=34322&view=diff)

— branches/1.8/phpgwapi/inc/class.html.inc.php (original)  
+++ branches/1.8/phpgwapi/inc/class.html.inc.php Tue Mar 22 14:16:19 2011  
@@ -200,6 +200,8 @@  
$config-\>set(‘HTML.TidyLevel’, ‘light’);  
// EnableID is needed for anchor tags  
$config-\>set(‘Attr.EnableID’,true);

- 

```
  // enable target attributes

```

- 

```
  $config->set('Attr.AllowedFrameTargets','_blank,_top,_self,_parent');
  // actual allowed tags and attributes
  $config->set('URI.AllowedSchemes', array('http'=>true, 'https'=>true, 'ftp'=>true, 'file'=>true, 'cid'=>true));
  $config->set('AutoFormat.RemoveEmpty', true);

```

@@ -241,6 +243,8 @@  
$config-\>set(‘HTML.TidyLevel’, ‘light’);  
// EnableID is needed for anchor tags  
$config-\>set(‘Attr.EnableID’,true);

- 

```
  // enable target attributes

```

- 

```
  $config->set('Attr.AllowedFrameTargets','_blank,_top,_self,_parent');
  // actual allowed tags and attributes
  $config->set('URI.AllowedSchemes', array('http'=>true, 'https'=>true, 'ftp'=>true, 'file'=>true, 'cid'=>true));
  $config->set('AutoFormat.RemoveEmpty', true);

```

@@ -1414,6 +1418,8 @@  
$config-\>set(‘HTML.TidyLevel’, ‘light’);  
// EnableID is needed for anchor tags  
$config-\>set(‘Attr.EnableID’,true);

- 

```
  		// enable target attributes

```

- 

```
  		$config->set('Attr.AllowedFrameTargets','_blank,_top,_self,_parent');
  		// actual allowed tags and attributes
  		$config->set('HTML.Allowed', 'br,p[align],b,i,u,s,em,pre,tt,strong,strike,sub,sup,center,div[align|style],hr[class|style],'.
  					'ul[type],ol[type|start],li,'.

```

* * *

Enable your software for Intel® Active Management Technology to meet the  
growing manageability and security demands of your customers. Businesses  
are taking advantage of Intel® vPro ™ technology - will your software  
be a part of the solution? Download the Intel® Manageability Checker  
today! [http://p.sf.net/sfu/intel-dev2devmar](http://p.sf.net/sfu/intel-dev2devmar)

* * *

eGroupWare-cvs mailing list  
[eGroupWare-cvs@lists.sourceforge.net](mailto:eGroupWare-cvs@lists.sourceforge.net)  
[https://lists.sourceforge.net/lists/listinfo/egroupware-cvs](https://lists.sourceforge.net/lists/listinfo/egroupware-cvs)
