The linkit module created links like this...

Input
<a href="internal:taxonomy/term/35">SOME TEXT</a>

Output
<a>Marc Hall</a>

How can I make this work with HTMLPurifier?

REF: http://drupal.org/project/linkit

Comments

anon’s picture

I think this is happening because the input filter filters are not set in the right order.

Please try the following:

  • Go to the input format list (admin/settings/filters/list)
  • Click configureon at the format you will use with both linkit and HTML Purifier.
  • Click Rearrange
  • Drag HTML Purifier to the bottom, or atleast after "Internal path filter"

That solved the issue for me.

bryancasler’s picture

Thanks anon, but I have only Pathologic installed. I will go ahead and install Path Filter and then follow your steps. Hopefully that will resolve the problem.

bryancasler’s picture

Installing Path Filter and putting it before HTMLPurifier did the trick. Thanks a million.

ezyang’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.