TinyMCE turns every & into & first. This is normal behavior and everything rolls with it.

But inside the [[ ]] if you have an & it gets reconverted in my source to & which looks crazy and leads to crazy titled nodes being made. I see the issue that's old #26488: ampersands in linked title. But it's still not working. I came up with a fix for this module, but I don't want to post it as the fix if it only happens in some circumstances. Please let me know if this is a problem with my install or this module. Thanks!

Scott,

Comments

Scott.Champion’s picture

This is my fix:

...
   $phrase = substr($wikiword, 2, -2);
   $pattern = '/\[\[' . preg_quote($phrase,'/') . ']]/';
   $phrase = preg_replace("[&]", '&', $phrase); 
   $freelink = $phrase;
...
Grayside’s picture

Status: Active » Closed (won't fix)

This is a problem with WYSIWYGs + Syntax such as this in general. Because of how sweeping such problems can be, the first place to check is the configuration of your WYWIWYG module, and TinyMCE/etc itself. Some Wysiwygs have configuration options specifically to turn off the kind of "help" that's getting in your way.