<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Warning: Attribute 'font-weight' in element 'font' not supported (for information on implementing this, see the support forums)</title>
        <description>how can i allow attributes like font-weight ?


function checkEntry($string)
{
	require_once '../htmlpurifier/library/HTMLPurifier.auto.php';
    
	$config = HTMLPurifier_Config::createDefault(); 
	$config-&amp;gt;set('HTML', 'TidyLevel', 'none');
	$config-&amp;gt;set('HTML', 'AllowedElements', 'font,u,strong,a,img,p,br,span');
	$config-&amp;gt;set('HTML', 'AllowedAttributes', 'font.font-weight');

    //$purifier = new HTMLPurifier();
	$purifier = new HTMLPurifier($config);
    $string = $purifier-&amp;gt;purify($string);
	
 	return $string;
}
</description>
        <link>http://htmlpurifier.org/phorum/read.php?3,1020,1020#msg-1020</link>
        <lastBuildDate>Sun, 19 May 2013 11:56:33 -0400</lastBuildDate>
        <generator>Phorum 5.2.18</generator>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?3,1020,1022#msg-1022</guid>
            <title>Re: Warning: Attribute 'font-weight' in element 'font' not supported (for information on implementing this, see the support forums)</title>
            <link>http://htmlpurifier.org/phorum/read.php?3,1020,1022#msg-1022</link>
            <description><![CDATA[<p>wow, what a fast reply.
thank you very much</p>]]></description>
            <dc:creator>baldi</dc:creator>
            <category>Support</category>
            <pubDate>Mon, 05 Nov 2007 08:25:33 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?3,1020,1021#msg-1021</guid>
            <title>Re: Warning: Attribute 'font-weight' in element 'font' not supported (for information on implementing this, see the support forums)</title>
            <link>http://htmlpurifier.org/phorum/read.php?3,1020,1021#msg-1021</link>
            <description><![CDATA[<p>Font-weight is not an attribute; it is a CSS property. Change AllowedAttributes to *.style</p>]]></description>
            <dc:creator>Ambush Commander</dc:creator>
            <category>Support</category>
            <pubDate>Mon, 05 Nov 2007 08:17:33 -0500</pubDate>
        </item>
        <item>
            <guid>http://htmlpurifier.org/phorum/read.php?3,1020,1020#msg-1020</guid>
            <title>Warning: Attribute 'font-weight' in element 'font' not supported (for information on implementing this, see the support forums)</title>
            <link>http://htmlpurifier.org/phorum/read.php?3,1020,1020#msg-1020</link>
            <description><![CDATA[<p>how can i allow attributes like font-weight ?</p>

<pre>
function checkEntry($string)
{
	require_once '../htmlpurifier/library/HTMLPurifier.auto.php';
    
	$config = HTMLPurifier_Config::createDefault(); 
	$config-&gt;set('HTML', 'TidyLevel', 'none');
	$config-&gt;set('HTML', 'AllowedElements', 'font,u,strong,a,img,p,br,span');
	$config-&gt;set('HTML', 'AllowedAttributes', 'font.font-weight');

    //$purifier = new HTMLPurifier();
	$purifier = new HTMLPurifier($config);
    $string = $purifier-&gt;purify($string);
	
 	return $string;
}
</pre>]]></description>
            <dc:creator>baldi</dc:creator>
            <category>Support</category>
            <pubDate>Mon, 05 Nov 2007 08:15:29 -0500</pubDate>
        </item>
    </channel>
</rss>
