I am looking for the correct methods to use so I can escape the input so only Bold, Italic, Underline and <p>.
The situation I am trying to avoid is someone pasting rich text into my field and then that data not being escaped correctly causing layout issues later on.
Any assistance is appreciated, even just ideas.
If anyone knows that this is for sure not a feature of CKEditor then any advice on creating a custom filter that would achieve this.
UPDATE*
So I have found this: CKEDITOR.dataProcessor()
And I think it will achieve what I wan't, although there is no example available. Does anyone have any insight on how to use this to escape all elements not inclusive of a particular set. eg... <p> <b> <i> <u>.
I want to exclude everything else. eg... <h1,h2,h3,h4,h5,h6,h7> <div> <ul> <li> <br/> ect...
The situation I am trying to avoid is someone pasting rich text into my field and then that data not being escaped correctly causing layout issues later on.
Any assistance is appreciated, even just ideas.
If anyone knows that this is for sure not a feature of CKEditor then any advice on creating a custom filter that would achieve this.
UPDATE*
So I have found this: CKEDITOR.dataProcessor()
And I think it will achieve what I wan't, although there is no example available. Does anyone have any insight on how to use this to escape all elements not inclusive of a particular set. eg... <p> <b> <i> <u>.
I want to exclude everything else. eg... <h1,h2,h3,h4,h5,h6,h7> <div> <ul> <li> <br/> ect...