I have a WYSIWYG button that adds a link that contains a data-target="#carousel-515". This is getting read by the Twitter module and being turned into:


<li data-slide-to="1" data-target="<a target=" _blank"="" rel="nofollow" class="twitter-timeline-link active" href="https://search.twitter.com/search?q=%23carousel" role="tab" id="tab-0-1" aria-controls="tabpanel-0-1" aria-selected="true" tabindex="0">#carousel-3034"&gt;&nbsp;<span class="sr-only">Slide 2: 

I don't believe it should be changing the data-target attribute content into a Twitter search string.

Any idea how to prevent this?

Thanks!

Comments

CrashTest_ created an issue.

DamienMcKenna’s picture

Ugh :-\ Yeah, the regexes are problematic, it also causes problems for CSS (#2388479: Twitter hashtag converter breaks CSS color codes in inline styles) :(