Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hi there,

Whenever I want to add some custom html with the source editor, the tag brackets ( "<" and ">") are transformed into ASCII code (respectively "&lt;" and "&gt;") in the source, so the html code is displayed as plain text in visual editor and can't make use of my code.

My website need special (non-English) characters, so I use UTF-8.

How can I prevent this problem please?
Hi,

Couch, as a security measure, allows only a subset of safe HTML tags as input and 'sanitizes' all others.

To be able to input arbitrary code, you'll have to convert your editable region to type 'textarea' and set its 'no_xss_check' parameter to '1' e.g.
Code: Select all
<cms:editable name='my_adsense' label="Adsense Code" desc="Enter your Adsense code here"
    no_xss_check='1'
    type="textarea"
/>

Hope this helps.
It works! Thank you so much! :)
Awesome! Thanks a lot.
4 posts Page 1 of 1