Welcome! » Log In » Create A New Profile

Custom HTML elements.

Posted by buggedcom 
Custom HTML elements.
May 03, 2010 01:42PM

I've got a question about adding a custom html element. I have a php class that parses output looking for custom html elements. For example

<ctag:pagination per_page="10" />

I've tried adding `ctag:pagination` to HTML.Allowed and `ctag:pagination.*` to HTML.AllowedAttributes, however I get the error

Notice: Cannot allow attribute &#039;*&#039; if element &#039;ctag:pagination&#039; is not allowed/supported (for information on implementing this, see the support forums) in /Users/ollie/Sites/SacrificeApp/Sacrifice/application/vendors/HTMLPurifier/HTMLPurifier/HTMLDefinition.php  on line 316

Am I doing something wrong. Can custom html elements not be added?

Re: Custom HTML elements.
May 03, 2010 01:45PM

Strike that, I forgot to save the config file. However the error warning is now gone, but the custom tag is still stripped?

Re: Custom HTML elements.
May 03, 2010 02:04PM
Re: Custom HTML elements.
May 03, 2010 02:08PM

Many thanks for the pointer.

Sorry, you do not have permission to post/reply in this forum.