We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Problems adding a script within an entry

How Do I?

Linda A's avatar
Linda A
647 posts
7 years ago
Linda A's avatar Linda A

I am trying to add the following script to a post and even if I set the formatting for the field to none it still switches out all ” for html entities, which presumably is why the script ends up not working.

<div class="ImageMiddle">
[removed]
amzn_assoc_placement = "adunit0";
amzn_assoc_search_bar = "false";
amzn_assoc_tracking_id = "XXX";
amzn_assoc_ad_mode = "manual";
amzn_assoc_ad_type = "smart";
amzn_assoc_marketplace = "amazon";
amzn_assoc_region = "US";
amzn_assoc_title = "";
amzn_assoc_linkid = "XXX";
amzn_assoc_asins = "B07255R5VV,B0711SHDFQ,B0714D3SYP,B06XNXCSDT,B071RNKJ4T,B0716YVRM7";
[removed]
[removed][removed]
</div>

Is there any way to accomplish this? Or is there some issue with selecting None for the field at the entry stage, does that not override the default properly? The text before it also comes out enclosed in paragraph tags.

Edited to add: even enclosed in code tags, it seems the forum strips out the script tags, but they are of course there.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.