Exclude PHP from output from WYSIWYG in CMS
Posted
by
bytewalls
on Pro Webmasters
See other posts from Pro Webmasters
or by bytewalls
Published on 2012-10-04T18:44:25Z
Indexed on
2012/10/04
21:54 UTC
Read the original article
Hit count: 159
I'm writing a basic CMS for one of my sites and have run into an issue where some pages need to dynamically serve PHP and JS, where as others are plain HTMl. I want there to be a setting which will allow this for the pages that need it and will load ACE editor instead of a different wysiwyg editor. The challenge here is that on the pages which I do not explicitly tell it there will be code, I want to reject any inputs that code. I can set it up to insert a for all pages without JS, but how can I keep php code from running?
© Pro Webmasters or respective owner