msi wrote:
> 
> Does anyone know a way to bypass this filter without really bypassing
> it? Or does anyone have a good idea how to solve this?

I know you don't want to discuss the plugin itself, but a more elegant 
solution might be to look for a special protocol in the href of a link 
and use that to build your URL instead of using a custom tag.  Like this:

<a href="post://my-post-slug">my post</a>

Then you could just do this:

$content = preg_replace_callback('%post://([\w-]+)%', array($this, 
'replace_slugs'), $content);
...
function replace_slugs($matches) {
   return URL::get('display_entry', array('slug'=>$matches[1]));
}

Or something like that.

That would get around the InputFilter, I think.

Owen


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/habari-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to