Hi

As many other has said, wonderful module, awesome work!

In the issue https://www.drupal.org/node/2631408 you discuss filtering out HTML tags. I have a similar problem. I'm using the Video filter module which adds "shorthand-code" in the body, e.g. [video:https://www.youtube.com/watch?v=c1Lf_8Lwa8E autoplay:1]. When using the body as a description, and this code is in the beginning, the code gets added to the description, which doesn't look too good.

Is there a way to strip this kind of "code", the same way as filtering out HTML-tags?

I'm using Drupal 7, so https://www.drupal.org/node/2631408 perhaps doesn't apply here.

// Adam

Comments

AdamEvertsson created an issue. See original summary.

DamienMcKenna’s picture

Title: Filter out code » Filter out Video Filter code
Version: 7.x-1.20 » 7.x-1.x-dev

Hrm. I'm confused as to why the text filters are not being executed on the body field before the token is filled in. Out of interest, what token are you using?

AdamEvertsson’s picture

For the metatags, I'm using [node:summary], but I feel that I left out some important information when you put it that way. I'm using the Video Filter moduler to easily embed YouTube-videos so the text filter is set to accept content like [video:https://www.youtube.com/watch?v=c1Lf_8Lwa8E autoplay:1]. See http://www.skrattnet.se/403 for a live example.

Since the video is first in the body, metatag prints it. I guess I could write a preprocess in the theme or in a module that removes anything between brackets, but since I'm not an avid coder... well... If I experience it as a problem, perhaps there are others having the same issue.

Once again - wonderful module, your doing great work, if you ever come to Mölnlycke, Sweden, look me up and I'll fire up the charcoal grill and offer you dinner. Local beer is on the table - or påskmust, a nice Swedish beverage! :)

// Adam

DamienMcKenna’s picture

Ah! Yeah. As it happens I'm also co-maintainer for the Video Filters module, so maybe that module needs some extra work :)

DamienMcKenna’s picture

Status: Active » Fixed

Lets close this in favor of #2715759: Filter strings by default, which has the same problem.

DamienMcKenna’s picture

Status: Fixed » Closed (fixed)

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