<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Adding a &amp;lt;script&amp;gt; to Email Template</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/4361/adding-a-script-to-email-template</link><description>Hi all. 
 I am having trouble getting a &amp;lt;script&amp;gt; to appear and work in an email template. This is a simple pmse_Emails_Templates template, but when I add the script in, it just simply does not work. 
 I am trying to follow the examples on https://support</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Adding a &lt;script&gt; to Email Template</title><link>https://sugarclub.sugarcrm.com/thread/21908?ContentTypeID=1</link><pubDate>Sat, 09 Jan 2021 10:04:34 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:680d2369-1292-4688-b3a9-4931bac4e491</guid><dc:creator>Neeraja P</dc:creator><description>&lt;p&gt;The script tag is trimmed by default in tinyMCE for security reasons.&amp;nbsp;You will have to allow the &amp;quot;script&amp;quot; tag but we should acknowledge that there is an inherent risk in doing so, but modern email clients won&amp;#39;t run that tag anyways (until you open the email in the browser).&lt;/p&gt;
&lt;p&gt;You can update tinyMCE config to allow script tag by adding this config&lt;/p&gt;
&lt;p&gt;&lt;code&gt;extended_valid_elements: &amp;#39;script[type]&amp;#39;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Updating tinyMCE config is documented here in Sugar wiki: &lt;a href="https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_10.2/Architecture/Extensions/TinyMCE/index.html"&gt;https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_10.2/Architecture/Extensions/TinyMCE/index.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>