Don't insert smileys in code tags

Wim Leers - April 19, 2007 - 18:28
Project:Smileys
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

This is the desired and expected behaviour, but currently not being applied by smileys.module.

i.e.:

[code] :) [/code]

and

[notag] :) [/notag]
and

<code> :)

#1

Wim Leers - April 19, 2007 - 18:43

(I accidentally hit the submit button too early...)

In all of these examples (note that the last example isn't rendered correctly either by drupal.org's filter... ironic), smileys.module's filter incorrectly inserts smileys.

We'd either have to use lookahead/lookbehind regexps, or split the text to only apply the smileys filter on the parts that are not inside of any of the tags listed above.

#2

Wim Leers - March 17, 2008 - 12:37

Any news about this? :)

#3

Gurpartap Singh - June 7, 2008 - 18:36

This would be some regular expressions magic. I'm too busy this summers, can you take on it? :D

#4

Gurpartap Singh - January 5, 2009 - 09:14
Status:active» fixed

Fixed in DRUPAL-6--1-0-ALPHA5. Only for <code> and <pre> tags.

#5

Gurpartap Singh - January 9, 2009 - 12:01
Status:fixed» active

I think we can make this an option. Since I feel loading performance being hit when loading like 100+ smileys (which is very possible in fun communities).

#6

Wim Leers - November 3, 2009 - 17:22
Status:active» closed

Cleaning up the issue queue.

 
 

Drupal is a registered trademark of Dries Buytaert.