|
How to use span style tag? February 05, 2011 07:06AM |
Registered: 2 years ago Posts: 5 |
Hi, i need help with my Code. I try to use this code: <code><![CDATA[<span style="font-weight: bold;">Text</span>]]></code>. But the output is <code><![CDATA[<span>Text</span>]]></code>. I tried to allow the Elements and Attributes, but it does not work as well. My Code for HTML Purifier: <pre><![CDATA[ $config->set('HTML.AllowedElements', 'span,strong,p,b,a,i,img'); $config->set('HTML.AllowedAttributes', '*.style, img.alt, img.src, a.href'); ]]></pre> I hope, you can help me.
|
Re: How to use span style tag? February 05, 2011 07:21AM |
Admin Registered: 6 years ago Posts: 2,632 |
|
Re: How to use span style tag? February 05, 2011 07:26AM |
Registered: 2 years ago Posts: 5 |
|
Re: How to use span style tag? February 05, 2011 07:28AM |
Admin Registered: 6 years ago Posts: 2,632 |
|
Re: How to use span style tag? February 05, 2011 07:34AM |
Registered: 2 years ago Posts: 5 |
|
Re: How to use span style tag? February 05, 2011 07:36AM |
Admin Registered: 6 years ago Posts: 2,632 |
|
Re: How to use span style tag? February 05, 2011 07:39AM |
Registered: 2 years ago Posts: 5 |
|
Re: How to use span style tag? February 05, 2011 07:42AM |
Admin Registered: 6 years ago Posts: 2,632 |
Yes. Turn it off or see here http://php.net/manual/en/security.magicquotes.disabling.php
|
Re: How to use span style tag? February 05, 2011 08:08AM |
Registered: 2 years ago Posts: 5 |