admin icon indicating copy to clipboard operation
admin copied to clipboard

textarea editor issue

Open eugenem opened this issue 9 years ago • 0 comments

There an issue with textarea form control. It doesn't encode html entities, so it's not possible to enter and the content. I've tried to use escaped value and it seems to work fine (replace {!$value!} by {{$value}}): views/default/formitem/textarea.blade.php:3

<textarea class="form-control" rows="{{ $rows }}" name="{{ $name }}" @if(isset($readonly))readonly="{{ $readonly }}"@endif>{{$value}}</textarea>

Can this be bad idea somehow? I've used chunk of HTML code as a content and it looks fine in the editor and in the DB afterwards.

eugenem avatar Nov 19 '15 15:11 eugenem