Insert html/js in db and edit |
(01-21-2020, 11:17 AM)jreklund Wrote: If you want to render it (so you can edit it). You will need to echo it inside a <textarea>your code</textarea>. In case you wan't to display it (for a programming guide?) you can use html_escape('your code'). Thanks i solve it , for show in list i use : <?= htmlspecialchars($row->codice)?> To show in input i use : $val=htmlentities($record->codice) and <input class='form-control' type='text' value="<?=$val?>" id='id_class_codice' name='codice' maxlength='65535' > |
Messages In This Thread |
Insert html/js in db and edit - by pippuccio76 - 01-21-2020, 10:41 AM
RE: Insert html/js in db and edit - by jreklund - 01-21-2020, 11:17 AM
RE: Insert html/js in db and edit - by pippuccio76 - 01-21-2020, 11:31 AM
|