[serendipity_event_freetag] auto-tag is too good

Found a bug? Tell us!!
Post Reply
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

[serendipity_event_freetag] auto-tag is too good

Post by bernd_d »

Since a few days i tried to use the auto-tag feature because i want to let tag postings from my iPhone. So far so good, but...

...the auto-tag-feature is searching inside html-keywords.

For example i have added keyword "serendipity" for a serendipity-tag (what else ;) ). Now, if i include a picture into a posting, it always gets this tag, because the word "serendipity" is contained in css-classes and/or file-path.


Could this be changed? For example as an option "ignore words inside html-code".
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: [serendipity_event_freetag] auto-tag is too good

Post by garvinhicking »

Hm...that's bad. It cannot easily be changed, matching text only in a partial scope is quite complicated.

Maybe if the auto-tagging would simply perform a strip_tags() before that, it could help. I've added this to the plugin, I don't really think that automatic keyword tagging should match on HTML tags, so I've not added it as an option...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

Re: [serendipity_event_freetag] auto-tag is too good

Post by bernd_d »

garvinhicking wrote:Maybe if the auto-tagging would simply perform a strip_tags() before that, it could help. I've added this to the plugin, I don't really think that automatic keyword tagging should match on HTML tags, so I've not added it as an option...
Thank you :) I'll test it as soon as possible.
Post Reply