php - How to encode HTML WYSIWYG editor CKEditor? -


i use wysiwyg editor ckeditor on site. have problem if take javascript script in editor , send these changes. shows me popup instead of show me html string. try encode text typed encodes code created editor (bold, underline).

i tried use configuration using wysiwyg editor:

config.htmlencodeoutput = true;

by typing <script> alert ('test') </ script> in editor, displays correctly on display. if want re-edit code, wrote me in editor:

&lt;script&gt;alert(&quot;test&quot;);&lt;/script&gt; 

do have idea how fix this?

try adding code ckeditor/config.js:

config.basicentities = false; config.entities = false; 

also make sure acf setup not strip code. more here:

http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -