When using fragments and templates, tags seem to be URI encoded after saving.
Characters such as “&” will change into &, into < and into >. This issue occurs because the meta tags have been added into the body tag.
A META tag has to be added in the header, not the body. META tags are only allowed to be added into the HEAD (like, a TITLE), so adding it into the BODY makes it invalid.
Explanation: When these items are saved in an ACS fragment, ACS adds a new header and pushes the meta tags, titles, etc., outside the header code. At a later stage, when you save the fragment/template, ACS parses the HTML and attempts to clean it by applying URI encoding to what it recognizes as text values for display. This ultimately changes some of the code, so it can’t render as expected.
Fix - Remove all elements of header information, meta tags, and CSS from fragments.
Simple fix - Keep all fragments as simple as possible, bare-bones HTML within a structure. After creating your final template, you can go into the HTML for it and add additional meta tags and CSS to the header already created by ACS.