I deduce in the table in values ​​from.

<td><input class="form-control" type="text" name="doc_publish" value="<?=htmlspecialchars($users['doc_publish'], ENT_QUOTES)?>" id="example-text-input"></td> 

enter image description here

How to make the data displayed entirely? Maybe a line break can be done somehow ...

    2 answers 2

    In the native mode, line wrapping cannot be done; use textarea for multiline data:

     textarea{ display:block; height: 100px; width:90%; } 
     <textarea class="form-control" id="example-text-input" name="doc_publish"> <?=htmlspecialchars($users['doc_publish'], ENT_QUOTES)?> </textarea> 

       $('textarea').on('paste input', function () { if ($(this).outerHeight() > this.scrollHeight){ $(this).height(1) } while ($(this).outerHeight() < this.scrollHeight + parseFloat($(this).css("borderTopWidth")) + parseFloat($(this).css("borderBottomWidth"))){ $(this).height($(this).height() + 1) } }); 
       <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <body> <textarea id="txtInput"></textarea> </body>