strip_tags on select options
strip_tags on select options
peterbrowne
Posts: 314Questions: 54Answers: 0
in Editor
I have a select in the editor where the options in the select contain HTML tags. I want to remove those tags for the select and retain them for the records in the database. Is there a way to do this in the editor, such as using PHP strip_tags?
{
label: "Program Outcomes:",
name: "program_outcome[].program_outcome_pk",
type: "select",
placeholder: 'No selection',
placeholderDisabled: false,
placeholderValue: 0,
multiple: true
}
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
https://css-tricks.com/snippets/javascript/strip-html-tags-in-javascript/
And for the rest of the work you already have an answer from me, I guess. The event to use is "xhr"
https://datatables.net/forums/discussion/comment/167249/#Comment_167249
Thanks, I used your server side option: