Hi guys, I'm trying to create a "duplicate page" functionality in my couch application and am having an issue regarding posting HTML tags inside the string.
I have the databound form that aparently is working correctly; I'm checking the posted data and it's going with the HTML tags as expected:
It creates the page correctly, every field were updated with the data from the previous page, but the HTML tags got stripped. In this specific case, the value inside the textarea field is:
I tried placing the "no_xss_check" attribute on the editable, but it's not working. The funny thing is that when I edit the data on the page, the html tags are recorded correctly. Couch just strip the html tags when posting it via dataBound form.
Anyone has some idea of what can be going on?
I'm using inline_edit, but the editables are of type "text" and "textarea".
I have the databound form that aparently is working correctly; I'm checking the posted data and it's going with the HTML tags as expected:
- Code: Select all
...
------WebKitFormBoundaryNCGRtcDtij7goIbE
Content-Disposition: form-data; name="f_news_desc_1"
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Labore obcaecati quaerat facere. Minus, laboriosam dignissimos possimus repellat pariatur quis veniam quas quisquam sint commodi consequatur eveniet hic ullam autem magnam.asdasd asd sd ads ds aads d sas repellat pariatur quis veniam <em><u><strong>quas quisquam sint commodi consequatur eveniet hic ullam autem magnam.Lorem ipsum dolor sit amet, consectetur adipisicing elit. Labore obcaecati quaerat facere. Minus, laboriosam dignissim</strong></u> possimus repellat pariatur quis veniam quas quisquam sint commodi consequatur eveniet hic ullam autem magnam
....
It creates the page correctly, every field were updated with the data from the previous page, but the HTML tags got stripped. In this specific case, the value inside the textarea field is:
- Code: Select all
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Labore obcaecati quaerat facere. Minus, laboriosam dignissimos possimus repellat pariatur quis veniam quas quisquam sint commodi consequatur eveniet hic ullam autem magnam.asdasd asd sd ads ds aads d sas repellat pariatur quis veniam quas quisquam sint commodi consequatur eveniet hic ullam autem magnam.Lorem ipsum dolor sit amet, consectetur adipisicing elit. Labore obcaecati quaerat facere. Minus, laboriosam dignissimos possimus repellat pariatur quis veniam quas quisquam sint commodi consequatur eveniet hic ullam autem magnam
I tried placing the "no_xss_check" attribute on the editable, but it's not working. The funny thing is that when I edit the data on the page, the html tags are recorded correctly. Couch just strip the html tags when posting it via dataBound form.
Anyone has some idea of what can be going on?
I'm using inline_edit, but the editables are of type "text" and "textarea".