How to handle free-form text fields
How to handle free-form text fields
obrienj
Posts: 93Questions: 38Answers: 0
I have several free-form text fields that can could contain ', ", \n, other special characters, and full fledged HTML produced by one of the recommended editors to be used in Datatables Editor.
What is the best approach to handling these fields that makes them palatable to DataTables, Datatables Editor, javascript, PHP, and MySql.
I have had a problem yet, but so far in testing I have used simple text sand I'd rather build the correct way right off.
Regards,
Jim
This discussion has been closed.
Answers
Hi Jim,
Whitespace in HTML is ignored, so
\n
wouldn't have any effect in the cell output. You could use a renderer if you want to replace the\n
with a<br>
though.In Editor use
textarea
and the\n
will be rendered as a new line character.Allan