Why editor removes content on save ?
Why editor removes content on save ?
Ronald76
Posts: 4Questions: 2Answers: 0
Hi
if i save data in a textarea field all non standard attributes are removed after saving.
Example:
My text in field:
<span uk-icon="icon: triangle-right"></span>
After saving data:
<span></span>
Knows somebody why ?
Thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
-
Hi,
I'm assuming that you are using the PHP libraries for Editor based on your description above. Its because caused by the XSS protection which strips out unknown attributes from the HTML. You could disable it as described in the documentation to confirm is that is the case.
Allan
Thanks Allan